The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftExtras, reference main (5c2565), with Swift 6.3 for Wasm on 13 Oct 2026 11:37:09 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344849-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.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1

Build Log

32 |         return (.performDefaultHandling, nil)
33 | #else
34 |         switch challenge.protectionSpace.authenticationMethod {
   |                          `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 |         case NSURLAuthenticationMethodServerTrust:
36 |             // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 |         switch challenge.protectionSpace.authenticationMethod {
35 |         case NSURLAuthenticationMethodServerTrust:
   |              `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 |         case NSURLAuthenticationMethodServerTrust:
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                  `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 |             return (.useCredential, cred)
39 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 |         case NSURLAuthenticationMethodServerTrust:
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                                                    `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 |             return (.useCredential, cred)
39 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:38:22: error: cannot infer contextual base in reference to member 'useCredential'
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
38 |             return (.useCredential, cred)
   |                      `- error: cannot infer contextual base in reference to member 'useCredential'
39 |         default:
40 |             return (.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:40:22: error: cannot infer contextual base in reference to member 'performDefaultHandling'
38 |             return (.useCredential, cred)
39 |         default:
40 |             return (.performDefaultHandling, nil)
   |                      `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
41 |         }
42 | #endif
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[97/221] Compiling SwiftExtras String+clean.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:26:25: error: cannot find 'DispatchSemaphore' in scope
24 |         operation: @escaping @Sendable () async throws -> Success
25 |     ) {
26 |         let semaphore = DispatchSemaphore(value: 0)
   |                         `- error: cannot find 'DispatchSemaphore' in scope
27 |
28 |         _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:49:23: error: cannot find 'URLRequest' in scope
47 |     /// - Returns: A Boolean value indicating whether the URL is reachable.
48 |     public func isReachable() async -> Bool {
49 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
50 |         request.httpMethod = "HEAD"
51 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:53:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |
52 |         do {
53 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
   |                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
54 |             return (response as? HTTPURLResponse)?.statusCode == 200
55 |         } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:54:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 |         do {
53 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
54 |             return (response as? HTTPURLResponse)?.statusCode == 200
   |                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 |         } catch {
56 |             return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:23: error: cannot find 'URLRequest' in scope
62 |     ///   - completion: A closure that is called with the result of the request.
63 |     public func isReachable(completion: @escaping (Bool) -> Void) {
64 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
65 |         request.httpMethod = "HEAD"
66 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:66:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 |         var request = URLRequest(url: self)
65 |         request.httpMethod = "HEAD"
66 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
   |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
67 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
68 |         }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:67:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 |         request.httpMethod = "HEAD"
66 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
67 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
   |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
68 |         }
69 |         .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                       `- error: cannot find type 'URLSessionDelegate' in scope
21 |     /// Handles a server-trust authentication challenge without certificate validation.
22 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                                           `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 |     /// Handles a server-trust authentication challenge without certificate validation.
22 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 |         _ session: URLSession,
28 |         didReceive challenge: URLAuthenticationChallenge
29 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
   |                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 |         // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |     /// - Returns: The disposition and optional credential that the session should use.
26 |     public func urlSession(
27 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |         didReceive challenge: URLAuthenticationChallenge
29 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
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/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |     public func urlSession(
27 |         _ session: URLSession,
28 |         didReceive challenge: URLAuthenticationChallenge
   |                               `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' 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 URLAuthenticationChallenge = AnyObject
  |                  `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:49:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | ///
48 | /// The declarations in this scope provide focused utilities while preserving the type’s standard behavior.
49 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
50 |     /// A URLSession that ignores SSL certificate errors.
51 |     public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 |         return (.performDefaultHandling, nil)
33 | #else
34 |         switch challenge.protectionSpace.authenticationMethod {
   |                          `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 |         case NSURLAuthenticationMethodServerTrust:
36 |             // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 |         switch challenge.protectionSpace.authenticationMethod {
35 |         case NSURLAuthenticationMethodServerTrust:
   |              `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 |         case NSURLAuthenticationMethodServerTrust:
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                  `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 |             return (.useCredential, cred)
39 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 |         case NSURLAuthenticationMethodServerTrust:
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                                                    `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 |             return (.useCredential, cred)
39 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:38:22: error: cannot infer contextual base in reference to member 'useCredential'
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
38 |             return (.useCredential, cred)
   |                      `- error: cannot infer contextual base in reference to member 'useCredential'
39 |         default:
40 |             return (.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:40:22: error: cannot infer contextual base in reference to member 'performDefaultHandling'
38 |             return (.useCredential, cred)
39 |         default:
40 |             return (.performDefaultHandling, nil)
   |                      `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
41 |         }
42 | #endif
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[98/221] Compiling SwiftExtras String+contains.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:26:25: error: cannot find 'DispatchSemaphore' in scope
24 |         operation: @escaping @Sendable () async throws -> Success
25 |     ) {
26 |         let semaphore = DispatchSemaphore(value: 0)
   |                         `- error: cannot find 'DispatchSemaphore' in scope
27 |
28 |         _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:49:23: error: cannot find 'URLRequest' in scope
47 |     /// - Returns: A Boolean value indicating whether the URL is reachable.
48 |     public func isReachable() async -> Bool {
49 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
50 |         request.httpMethod = "HEAD"
51 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:53:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |
52 |         do {
53 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
   |                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
54 |             return (response as? HTTPURLResponse)?.statusCode == 200
55 |         } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:54:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 |         do {
53 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
54 |             return (response as? HTTPURLResponse)?.statusCode == 200
   |                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 |         } catch {
56 |             return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:23: error: cannot find 'URLRequest' in scope
62 |     ///   - completion: A closure that is called with the result of the request.
63 |     public func isReachable(completion: @escaping (Bool) -> Void) {
64 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
65 |         request.httpMethod = "HEAD"
66 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:66:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 |         var request = URLRequest(url: self)
65 |         request.httpMethod = "HEAD"
66 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
   |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
67 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
68 |         }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:67:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 |         request.httpMethod = "HEAD"
66 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
67 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
   |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
68 |         }
69 |         .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                       `- error: cannot find type 'URLSessionDelegate' in scope
21 |     /// Handles a server-trust authentication challenge without certificate validation.
22 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                                           `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 |     /// Handles a server-trust authentication challenge without certificate validation.
22 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 |         _ session: URLSession,
28 |         didReceive challenge: URLAuthenticationChallenge
29 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
   |                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 |         // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |     /// - Returns: The disposition and optional credential that the session should use.
26 |     public func urlSession(
27 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |         didReceive challenge: URLAuthenticationChallenge
29 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
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/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |     public func urlSession(
27 |         _ session: URLSession,
28 |         didReceive challenge: URLAuthenticationChallenge
   |                               `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' 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 URLAuthenticationChallenge = AnyObject
  |                  `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:49:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | ///
48 | /// The declarations in this scope provide focused utilities while preserving the type’s standard behavior.
49 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
50 |     /// A URLSession that ignores SSL certificate errors.
51 |     public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 |         return (.performDefaultHandling, nil)
33 | #else
34 |         switch challenge.protectionSpace.authenticationMethod {
   |                          `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 |         case NSURLAuthenticationMethodServerTrust:
36 |             // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 |         switch challenge.protectionSpace.authenticationMethod {
35 |         case NSURLAuthenticationMethodServerTrust:
   |              `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 |         case NSURLAuthenticationMethodServerTrust:
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                  `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 |             return (.useCredential, cred)
39 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 |         case NSURLAuthenticationMethodServerTrust:
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                                                    `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 |             return (.useCredential, cred)
39 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:38:22: error: cannot infer contextual base in reference to member 'useCredential'
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
38 |             return (.useCredential, cred)
   |                      `- error: cannot infer contextual base in reference to member 'useCredential'
39 |         default:
40 |             return (.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:40:22: error: cannot infer contextual base in reference to member 'performDefaultHandling'
38 |             return (.useCredential, cred)
39 |         default:
40 |             return (.performDefaultHandling, nil)
   |                      `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
41 |         }
42 | #endif
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[99/221] Compiling SwiftExtras String+error.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:26:25: error: cannot find 'DispatchSemaphore' in scope
24 |         operation: @escaping @Sendable () async throws -> Success
25 |     ) {
26 |         let semaphore = DispatchSemaphore(value: 0)
   |                         `- error: cannot find 'DispatchSemaphore' in scope
27 |
28 |         _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:49:23: error: cannot find 'URLRequest' in scope
47 |     /// - Returns: A Boolean value indicating whether the URL is reachable.
48 |     public func isReachable() async -> Bool {
49 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
50 |         request.httpMethod = "HEAD"
51 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:53:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |
52 |         do {
53 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
   |                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
54 |             return (response as? HTTPURLResponse)?.statusCode == 200
55 |         } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:54:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 |         do {
53 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
54 |             return (response as? HTTPURLResponse)?.statusCode == 200
   |                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 |         } catch {
56 |             return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:23: error: cannot find 'URLRequest' in scope
62 |     ///   - completion: A closure that is called with the result of the request.
63 |     public func isReachable(completion: @escaping (Bool) -> Void) {
64 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
65 |         request.httpMethod = "HEAD"
66 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:66:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 |         var request = URLRequest(url: self)
65 |         request.httpMethod = "HEAD"
66 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
   |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
67 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
68 |         }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:67:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 |         request.httpMethod = "HEAD"
66 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
67 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
   |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
68 |         }
69 |         .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                       `- error: cannot find type 'URLSessionDelegate' in scope
21 |     /// Handles a server-trust authentication challenge without certificate validation.
22 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                                           `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 |     /// Handles a server-trust authentication challenge without certificate validation.
22 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 |         _ session: URLSession,
28 |         didReceive challenge: URLAuthenticationChallenge
29 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
   |                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 |         // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |     /// - Returns: The disposition and optional credential that the session should use.
26 |     public func urlSession(
27 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |         didReceive challenge: URLAuthenticationChallenge
29 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
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/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |     public func urlSession(
27 |         _ session: URLSession,
28 |         didReceive challenge: URLAuthenticationChallenge
   |                               `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' 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 URLAuthenticationChallenge = AnyObject
  |                  `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:49:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | ///
48 | /// The declarations in this scope provide focused utilities while preserving the type’s standard behavior.
49 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
50 |     /// A URLSession that ignores SSL certificate errors.
51 |     public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 |         return (.performDefaultHandling, nil)
33 | #else
34 |         switch challenge.protectionSpace.authenticationMethod {
   |                          `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 |         case NSURLAuthenticationMethodServerTrust:
36 |             // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 |         switch challenge.protectionSpace.authenticationMethod {
35 |         case NSURLAuthenticationMethodServerTrust:
   |              `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 |         case NSURLAuthenticationMethodServerTrust:
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                  `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 |             return (.useCredential, cred)
39 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 |         case NSURLAuthenticationMethodServerTrust:
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                                                    `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 |             return (.useCredential, cred)
39 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:38:22: error: cannot infer contextual base in reference to member 'useCredential'
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
38 |             return (.useCredential, cred)
   |                      `- error: cannot infer contextual base in reference to member 'useCredential'
39 |         default:
40 |             return (.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:40:22: error: cannot infer contextual base in reference to member 'performDefaultHandling'
38 |             return (.useCredential, cred)
39 |         default:
40 |             return (.performDefaultHandling, nil)
   |                      `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
41 |         }
42 | #endif
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[100/221] Compiling SwiftExtras String+fuzzyMatches.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:26:25: error: cannot find 'DispatchSemaphore' in scope
24 |         operation: @escaping @Sendable () async throws -> Success
25 |     ) {
26 |         let semaphore = DispatchSemaphore(value: 0)
   |                         `- error: cannot find 'DispatchSemaphore' in scope
27 |
28 |         _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:49:23: error: cannot find 'URLRequest' in scope
47 |     /// - Returns: A Boolean value indicating whether the URL is reachable.
48 |     public func isReachable() async -> Bool {
49 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
50 |         request.httpMethod = "HEAD"
51 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:53:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |
52 |         do {
53 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
   |                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
54 |             return (response as? HTTPURLResponse)?.statusCode == 200
55 |         } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:54:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 |         do {
53 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
54 |             return (response as? HTTPURLResponse)?.statusCode == 200
   |                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 |         } catch {
56 |             return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:23: error: cannot find 'URLRequest' in scope
62 |     ///   - completion: A closure that is called with the result of the request.
63 |     public func isReachable(completion: @escaping (Bool) -> Void) {
64 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
65 |         request.httpMethod = "HEAD"
66 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:66:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 |         var request = URLRequest(url: self)
65 |         request.httpMethod = "HEAD"
66 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
   |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
67 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
68 |         }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:67:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 |         request.httpMethod = "HEAD"
66 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
67 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
   |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
68 |         }
69 |         .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                       `- error: cannot find type 'URLSessionDelegate' in scope
21 |     /// Handles a server-trust authentication challenge without certificate validation.
22 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                                           `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 |     /// Handles a server-trust authentication challenge without certificate validation.
22 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 |         _ session: URLSession,
28 |         didReceive challenge: URLAuthenticationChallenge
29 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
   |                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 |         // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |     /// - Returns: The disposition and optional credential that the session should use.
26 |     public func urlSession(
27 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |         didReceive challenge: URLAuthenticationChallenge
29 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
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/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |     public func urlSession(
27 |         _ session: URLSession,
28 |         didReceive challenge: URLAuthenticationChallenge
   |                               `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' 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 URLAuthenticationChallenge = AnyObject
  |                  `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:49:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | ///
48 | /// The declarations in this scope provide focused utilities while preserving the type’s standard behavior.
49 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
50 |     /// A URLSession that ignores SSL certificate errors.
51 |     public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 |         return (.performDefaultHandling, nil)
33 | #else
34 |         switch challenge.protectionSpace.authenticationMethod {
   |                          `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 |         case NSURLAuthenticationMethodServerTrust:
36 |             // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 |         switch challenge.protectionSpace.authenticationMethod {
35 |         case NSURLAuthenticationMethodServerTrust:
   |              `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 |         case NSURLAuthenticationMethodServerTrust:
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                  `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 |             return (.useCredential, cred)
39 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 |         case NSURLAuthenticationMethodServerTrust:
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                                                    `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 |             return (.useCredential, cred)
39 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:38:22: error: cannot infer contextual base in reference to member 'useCredential'
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
38 |             return (.useCredential, cred)
   |                      `- error: cannot infer contextual base in reference to member 'useCredential'
39 |         default:
40 |             return (.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:40:22: error: cannot infer contextual base in reference to member 'performDefaultHandling'
38 |             return (.useCredential, cred)
39 |         default:
40 |             return (.performDefaultHandling, nil)
   |                      `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
41 |         }
42 | #endif
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[101/221] Compiling SwiftExtras String+hashed.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:26:25: error: cannot find 'DispatchSemaphore' in scope
24 |         operation: @escaping @Sendable () async throws -> Success
25 |     ) {
26 |         let semaphore = DispatchSemaphore(value: 0)
   |                         `- error: cannot find 'DispatchSemaphore' in scope
27 |
28 |         _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:49:23: error: cannot find 'URLRequest' in scope
47 |     /// - Returns: A Boolean value indicating whether the URL is reachable.
48 |     public func isReachable() async -> Bool {
49 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
50 |         request.httpMethod = "HEAD"
51 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:53:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |
52 |         do {
53 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
   |                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
54 |             return (response as? HTTPURLResponse)?.statusCode == 200
55 |         } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:54:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 |         do {
53 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
54 |             return (response as? HTTPURLResponse)?.statusCode == 200
   |                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 |         } catch {
56 |             return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:23: error: cannot find 'URLRequest' in scope
62 |     ///   - completion: A closure that is called with the result of the request.
63 |     public func isReachable(completion: @escaping (Bool) -> Void) {
64 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
65 |         request.httpMethod = "HEAD"
66 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:66:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 |         var request = URLRequest(url: self)
65 |         request.httpMethod = "HEAD"
66 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
   |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
67 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
68 |         }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:67:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 |         request.httpMethod = "HEAD"
66 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
67 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
   |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
68 |         }
69 |         .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                       `- error: cannot find type 'URLSessionDelegate' in scope
21 |     /// Handles a server-trust authentication challenge without certificate validation.
22 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                                           `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 |     /// Handles a server-trust authentication challenge without certificate validation.
22 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 |         _ session: URLSession,
28 |         didReceive challenge: URLAuthenticationChallenge
29 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
   |                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 |         // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |     /// - Returns: The disposition and optional credential that the session should use.
26 |     public func urlSession(
27 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |         didReceive challenge: URLAuthenticationChallenge
29 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
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/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |     public func urlSession(
27 |         _ session: URLSession,
28 |         didReceive challenge: URLAuthenticationChallenge
   |                               `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' 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 URLAuthenticationChallenge = AnyObject
  |                  `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:49:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | ///
48 | /// The declarations in this scope provide focused utilities while preserving the type’s standard behavior.
49 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
50 |     /// A URLSession that ignores SSL certificate errors.
51 |     public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 |         return (.performDefaultHandling, nil)
33 | #else
34 |         switch challenge.protectionSpace.authenticationMethod {
   |                          `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 |         case NSURLAuthenticationMethodServerTrust:
36 |             // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 |         switch challenge.protectionSpace.authenticationMethod {
35 |         case NSURLAuthenticationMethodServerTrust:
   |              `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 |         case NSURLAuthenticationMethodServerTrust:
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                  `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 |             return (.useCredential, cred)
39 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 |         case NSURLAuthenticationMethodServerTrust:
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                                                    `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 |             return (.useCredential, cred)
39 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:38:22: error: cannot infer contextual base in reference to member 'useCredential'
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
38 |             return (.useCredential, cred)
   |                      `- error: cannot infer contextual base in reference to member 'useCredential'
39 |         default:
40 |             return (.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:40:22: error: cannot infer contextual base in reference to member 'performDefaultHandling'
38 |             return (.useCredential, cred)
39 |         default:
40 |             return (.performDefaultHandling, nil)
   |                      `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
41 |         }
42 | #endif
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[102/221] Compiling SwiftExtras String+slice.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:26:25: error: cannot find 'DispatchSemaphore' in scope
24 |         operation: @escaping @Sendable () async throws -> Success
25 |     ) {
26 |         let semaphore = DispatchSemaphore(value: 0)
   |                         `- error: cannot find 'DispatchSemaphore' in scope
27 |
28 |         _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:49:23: error: cannot find 'URLRequest' in scope
47 |     /// - Returns: A Boolean value indicating whether the URL is reachable.
48 |     public func isReachable() async -> Bool {
49 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
50 |         request.httpMethod = "HEAD"
51 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:53:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |
52 |         do {
53 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
   |                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
54 |             return (response as? HTTPURLResponse)?.statusCode == 200
55 |         } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:54:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 |         do {
53 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
54 |             return (response as? HTTPURLResponse)?.statusCode == 200
   |                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 |         } catch {
56 |             return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:23: error: cannot find 'URLRequest' in scope
62 |     ///   - completion: A closure that is called with the result of the request.
63 |     public func isReachable(completion: @escaping (Bool) -> Void) {
64 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
65 |         request.httpMethod = "HEAD"
66 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:66:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 |         var request = URLRequest(url: self)
65 |         request.httpMethod = "HEAD"
66 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
   |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
67 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
68 |         }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:67:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 |         request.httpMethod = "HEAD"
66 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
67 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
   |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
68 |         }
69 |         .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                       `- error: cannot find type 'URLSessionDelegate' in scope
21 |     /// Handles a server-trust authentication challenge without certificate validation.
22 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                                           `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 |     /// Handles a server-trust authentication challenge without certificate validation.
22 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 |         _ session: URLSession,
28 |         didReceive challenge: URLAuthenticationChallenge
29 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
   |                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 |         // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |     /// - Returns: The disposition and optional credential that the session should use.
26 |     public func urlSession(
27 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |         didReceive challenge: URLAuthenticationChallenge
29 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
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/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |     public func urlSession(
27 |         _ session: URLSession,
28 |         didReceive challenge: URLAuthenticationChallenge
   |                               `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' 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 URLAuthenticationChallenge = AnyObject
  |                  `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:49:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | ///
48 | /// The declarations in this scope provide focused utilities while preserving the type’s standard behavior.
49 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
50 |     /// A URLSession that ignores SSL certificate errors.
51 |     public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 |         return (.performDefaultHandling, nil)
33 | #else
34 |         switch challenge.protectionSpace.authenticationMethod {
   |                          `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 |         case NSURLAuthenticationMethodServerTrust:
36 |             // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 |         switch challenge.protectionSpace.authenticationMethod {
35 |         case NSURLAuthenticationMethodServerTrust:
   |              `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 |         case NSURLAuthenticationMethodServerTrust:
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                  `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 |             return (.useCredential, cred)
39 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 |         case NSURLAuthenticationMethodServerTrust:
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                                                    `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 |             return (.useCredential, cred)
39 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:38:22: error: cannot infer contextual base in reference to member 'useCredential'
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
38 |             return (.useCredential, cred)
   |                      `- error: cannot infer contextual base in reference to member 'useCredential'
39 |         default:
40 |             return (.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:40:22: error: cannot infer contextual base in reference to member 'performDefaultHandling'
38 |             return (.useCredential, cred)
39 |         default:
40 |             return (.performDefaultHandling, nil)
   |                      `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
41 |         }
42 | #endif
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[103/221] Compiling SwiftExtras String+slugified.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:26:25: error: cannot find 'DispatchSemaphore' in scope
24 |         operation: @escaping @Sendable () async throws -> Success
25 |     ) {
26 |         let semaphore = DispatchSemaphore(value: 0)
   |                         `- error: cannot find 'DispatchSemaphore' in scope
27 |
28 |         _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:49:23: error: cannot find 'URLRequest' in scope
47 |     /// - Returns: A Boolean value indicating whether the URL is reachable.
48 |     public func isReachable() async -> Bool {
49 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
50 |         request.httpMethod = "HEAD"
51 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:53:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |
52 |         do {
53 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
   |                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
54 |             return (response as? HTTPURLResponse)?.statusCode == 200
55 |         } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:54:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 |         do {
53 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
54 |             return (response as? HTTPURLResponse)?.statusCode == 200
   |                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 |         } catch {
56 |             return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:23: error: cannot find 'URLRequest' in scope
62 |     ///   - completion: A closure that is called with the result of the request.
63 |     public func isReachable(completion: @escaping (Bool) -> Void) {
64 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
65 |         request.httpMethod = "HEAD"
66 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:66:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 |         var request = URLRequest(url: self)
65 |         request.httpMethod = "HEAD"
66 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
   |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
67 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
68 |         }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:67:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 |         request.httpMethod = "HEAD"
66 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
67 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
   |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
68 |         }
69 |         .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                       `- error: cannot find type 'URLSessionDelegate' in scope
21 |     /// Handles a server-trust authentication challenge without certificate validation.
22 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                                           `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 |     /// Handles a server-trust authentication challenge without certificate validation.
22 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 |         _ session: URLSession,
28 |         didReceive challenge: URLAuthenticationChallenge
29 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
   |                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 |         // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |     /// - Returns: The disposition and optional credential that the session should use.
26 |     public func urlSession(
27 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |         didReceive challenge: URLAuthenticationChallenge
29 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
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/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |     public func urlSession(
27 |         _ session: URLSession,
28 |         didReceive challenge: URLAuthenticationChallenge
   |                               `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' 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 URLAuthenticationChallenge = AnyObject
  |                  `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:49:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | ///
48 | /// The declarations in this scope provide focused utilities while preserving the type’s standard behavior.
49 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
50 |     /// A URLSession that ignores SSL certificate errors.
51 |     public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 |         return (.performDefaultHandling, nil)
33 | #else
34 |         switch challenge.protectionSpace.authenticationMethod {
   |                          `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 |         case NSURLAuthenticationMethodServerTrust:
36 |             // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 |         switch challenge.protectionSpace.authenticationMethod {
35 |         case NSURLAuthenticationMethodServerTrust:
   |              `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 |         case NSURLAuthenticationMethodServerTrust:
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                  `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 |             return (.useCredential, cred)
39 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 |         case NSURLAuthenticationMethodServerTrust:
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                                                    `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 |             return (.useCredential, cred)
39 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:38:22: error: cannot infer contextual base in reference to member 'useCredential'
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
38 |             return (.useCredential, cred)
   |                      `- error: cannot infer contextual base in reference to member 'useCredential'
39 |         default:
40 |             return (.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:40:22: error: cannot infer contextual base in reference to member 'performDefaultHandling'
38 |             return (.useCredential, cred)
39 |         default:
40 |             return (.performDefaultHandling, nil)
   |                      `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
41 |         }
42 | #endif
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[104/221] Compiling SwiftExtras String+subscript.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:26:25: error: cannot find 'DispatchSemaphore' in scope
24 |         operation: @escaping @Sendable () async throws -> Success
25 |     ) {
26 |         let semaphore = DispatchSemaphore(value: 0)
   |                         `- error: cannot find 'DispatchSemaphore' in scope
27 |
28 |         _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:49:23: error: cannot find 'URLRequest' in scope
47 |     /// - Returns: A Boolean value indicating whether the URL is reachable.
48 |     public func isReachable() async -> Bool {
49 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
50 |         request.httpMethod = "HEAD"
51 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:53:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |
52 |         do {
53 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
   |                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
54 |             return (response as? HTTPURLResponse)?.statusCode == 200
55 |         } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:54:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 |         do {
53 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
54 |             return (response as? HTTPURLResponse)?.statusCode == 200
   |                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 |         } catch {
56 |             return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:23: error: cannot find 'URLRequest' in scope
62 |     ///   - completion: A closure that is called with the result of the request.
63 |     public func isReachable(completion: @escaping (Bool) -> Void) {
64 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
65 |         request.httpMethod = "HEAD"
66 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:66:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 |         var request = URLRequest(url: self)
65 |         request.httpMethod = "HEAD"
66 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
   |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
67 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
68 |         }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:67:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 |         request.httpMethod = "HEAD"
66 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
67 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
   |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
68 |         }
69 |         .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                       `- error: cannot find type 'URLSessionDelegate' in scope
21 |     /// Handles a server-trust authentication challenge without certificate validation.
22 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                                           `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 |     /// Handles a server-trust authentication challenge without certificate validation.
22 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 |         _ session: URLSession,
28 |         didReceive challenge: URLAuthenticationChallenge
29 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
   |                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 |         // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |     /// - Returns: The disposition and optional credential that the session should use.
26 |     public func urlSession(
27 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |         didReceive challenge: URLAuthenticationChallenge
29 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
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/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |     public func urlSession(
27 |         _ session: URLSession,
28 |         didReceive challenge: URLAuthenticationChallenge
   |                               `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' 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 URLAuthenticationChallenge = AnyObject
  |                  `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:49:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | ///
48 | /// The declarations in this scope provide focused utilities while preserving the type’s standard behavior.
49 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
50 |     /// A URLSession that ignores SSL certificate errors.
51 |     public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 |         return (.performDefaultHandling, nil)
33 | #else
34 |         switch challenge.protectionSpace.authenticationMethod {
   |                          `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 |         case NSURLAuthenticationMethodServerTrust:
36 |             // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 |         switch challenge.protectionSpace.authenticationMethod {
35 |         case NSURLAuthenticationMethodServerTrust:
   |              `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 |         case NSURLAuthenticationMethodServerTrust:
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                  `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 |             return (.useCredential, cred)
39 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 |         case NSURLAuthenticationMethodServerTrust:
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                                                    `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 |             return (.useCredential, cred)
39 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:38:22: error: cannot infer contextual base in reference to member 'useCredential'
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
38 |             return (.useCredential, cred)
   |                      `- error: cannot infer contextual base in reference to member 'useCredential'
39 |         default:
40 |             return (.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:40:22: error: cannot infer contextual base in reference to member 'performDefaultHandling'
38 |             return (.useCredential, cred)
39 |         default:
40 |             return (.performDefaultHandling, nil)
   |                      `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
41 |         }
42 | #endif
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[105/221] Compiling SwiftExtras String+trimmed.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:26:25: error: cannot find 'DispatchSemaphore' in scope
24 |         operation: @escaping @Sendable () async throws -> Success
25 |     ) {
26 |         let semaphore = DispatchSemaphore(value: 0)
   |                         `- error: cannot find 'DispatchSemaphore' in scope
27 |
28 |         _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:49:23: error: cannot find 'URLRequest' in scope
47 |     /// - Returns: A Boolean value indicating whether the URL is reachable.
48 |     public func isReachable() async -> Bool {
49 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
50 |         request.httpMethod = "HEAD"
51 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:53:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |
52 |         do {
53 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
   |                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
54 |             return (response as? HTTPURLResponse)?.statusCode == 200
55 |         } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:54:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 |         do {
53 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
54 |             return (response as? HTTPURLResponse)?.statusCode == 200
   |                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 |         } catch {
56 |             return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:23: error: cannot find 'URLRequest' in scope
62 |     ///   - completion: A closure that is called with the result of the request.
63 |     public func isReachable(completion: @escaping (Bool) -> Void) {
64 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
65 |         request.httpMethod = "HEAD"
66 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:66:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 |         var request = URLRequest(url: self)
65 |         request.httpMethod = "HEAD"
66 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
   |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
67 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
68 |         }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:67:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 |         request.httpMethod = "HEAD"
66 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
67 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
   |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
68 |         }
69 |         .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                       `- error: cannot find type 'URLSessionDelegate' in scope
21 |     /// Handles a server-trust authentication challenge without certificate validation.
22 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                                           `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 |     /// Handles a server-trust authentication challenge without certificate validation.
22 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 |         _ session: URLSession,
28 |         didReceive challenge: URLAuthenticationChallenge
29 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
   |                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 |         // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |     /// - Returns: The disposition and optional credential that the session should use.
26 |     public func urlSession(
27 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |         didReceive challenge: URLAuthenticationChallenge
29 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
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/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |     public func urlSession(
27 |         _ session: URLSession,
28 |         didReceive challenge: URLAuthenticationChallenge
   |                               `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' 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 URLAuthenticationChallenge = AnyObject
  |                  `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:49:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | ///
48 | /// The declarations in this scope provide focused utilities while preserving the type’s standard behavior.
49 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
50 |     /// A URLSession that ignores SSL certificate errors.
51 |     public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 |         return (.performDefaultHandling, nil)
33 | #else
34 |         switch challenge.protectionSpace.authenticationMethod {
   |                          `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 |         case NSURLAuthenticationMethodServerTrust:
36 |             // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 |         switch challenge.protectionSpace.authenticationMethod {
35 |         case NSURLAuthenticationMethodServerTrust:
   |              `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 |         case NSURLAuthenticationMethodServerTrust:
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                  `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 |             return (.useCredential, cred)
39 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 |         case NSURLAuthenticationMethodServerTrust:
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                                                    `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 |             return (.useCredential, cred)
39 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:38:22: error: cannot infer contextual base in reference to member 'useCredential'
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
38 |             return (.useCredential, cred)
   |                      `- error: cannot infer contextual base in reference to member 'useCredential'
39 |         default:
40 |             return (.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:40:22: error: cannot infer contextual base in reference to member 'performDefaultHandling'
38 |             return (.useCredential, cred)
39 |         default:
40 |             return (.performDefaultHandling, nil)
   |                      `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
41 |         }
42 | #endif
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[106/221] Compiling SwiftExtras String+url.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:26:25: error: cannot find 'DispatchSemaphore' in scope
24 |         operation: @escaping @Sendable () async throws -> Success
25 |     ) {
26 |         let semaphore = DispatchSemaphore(value: 0)
   |                         `- error: cannot find 'DispatchSemaphore' in scope
27 |
28 |         _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:49:23: error: cannot find 'URLRequest' in scope
47 |     /// - Returns: A Boolean value indicating whether the URL is reachable.
48 |     public func isReachable() async -> Bool {
49 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
50 |         request.httpMethod = "HEAD"
51 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:53:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |
52 |         do {
53 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
   |                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
54 |             return (response as? HTTPURLResponse)?.statusCode == 200
55 |         } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:54:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 |         do {
53 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
54 |             return (response as? HTTPURLResponse)?.statusCode == 200
   |                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 |         } catch {
56 |             return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:23: error: cannot find 'URLRequest' in scope
62 |     ///   - completion: A closure that is called with the result of the request.
63 |     public func isReachable(completion: @escaping (Bool) -> Void) {
64 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
65 |         request.httpMethod = "HEAD"
66 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:66:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 |         var request = URLRequest(url: self)
65 |         request.httpMethod = "HEAD"
66 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
   |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
67 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
68 |         }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:67:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 |         request.httpMethod = "HEAD"
66 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
67 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
   |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
68 |         }
69 |         .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                       `- error: cannot find type 'URLSessionDelegate' in scope
21 |     /// Handles a server-trust authentication challenge without certificate validation.
22 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                                           `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 |     /// Handles a server-trust authentication challenge without certificate validation.
22 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 |         _ session: URLSession,
28 |         didReceive challenge: URLAuthenticationChallenge
29 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
   |                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 |         // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |     /// - Returns: The disposition and optional credential that the session should use.
26 |     public func urlSession(
27 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |         didReceive challenge: URLAuthenticationChallenge
29 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
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/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |     public func urlSession(
27 |         _ session: URLSession,
28 |         didReceive challenge: URLAuthenticationChallenge
   |                               `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' 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 URLAuthenticationChallenge = AnyObject
  |                  `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:49:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | ///
48 | /// The declarations in this scope provide focused utilities while preserving the type’s standard behavior.
49 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
50 |     /// A URLSession that ignores SSL certificate errors.
51 |     public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 |         return (.performDefaultHandling, nil)
33 | #else
34 |         switch challenge.protectionSpace.authenticationMethod {
   |                          `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 |         case NSURLAuthenticationMethodServerTrust:
36 |             // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 |         switch challenge.protectionSpace.authenticationMethod {
35 |         case NSURLAuthenticationMethodServerTrust:
   |              `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 |         case NSURLAuthenticationMethodServerTrust:
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                  `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 |             return (.useCredential, cred)
39 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 |         case NSURLAuthenticationMethodServerTrust:
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                                                    `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 |             return (.useCredential, cred)
39 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:38:22: error: cannot infer contextual base in reference to member 'useCredential'
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
38 |             return (.useCredential, cred)
   |                      `- error: cannot infer contextual base in reference to member 'useCredential'
39 |         default:
40 |             return (.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:40:22: error: cannot infer contextual base in reference to member 'performDefaultHandling'
38 |             return (.useCredential, cred)
39 |         default:
40 |             return (.performDefaultHandling, nil)
   |                      `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
41 |         }
42 | #endif
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[107/221] Compiling SwiftExtras StringProtocol+.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:26:25: error: cannot find 'DispatchSemaphore' in scope
24 |         operation: @escaping @Sendable () async throws -> Success
25 |     ) {
26 |         let semaphore = DispatchSemaphore(value: 0)
   |                         `- error: cannot find 'DispatchSemaphore' in scope
27 |
28 |         _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:49:23: error: cannot find 'URLRequest' in scope
47 |     /// - Returns: A Boolean value indicating whether the URL is reachable.
48 |     public func isReachable() async -> Bool {
49 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
50 |         request.httpMethod = "HEAD"
51 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:53:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |
52 |         do {
53 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
   |                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
54 |             return (response as? HTTPURLResponse)?.statusCode == 200
55 |         } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:54:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 |         do {
53 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
54 |             return (response as? HTTPURLResponse)?.statusCode == 200
   |                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 |         } catch {
56 |             return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:23: error: cannot find 'URLRequest' in scope
62 |     ///   - completion: A closure that is called with the result of the request.
63 |     public func isReachable(completion: @escaping (Bool) -> Void) {
64 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
65 |         request.httpMethod = "HEAD"
66 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:66:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 |         var request = URLRequest(url: self)
65 |         request.httpMethod = "HEAD"
66 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
   |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
67 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
68 |         }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:67:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 |         request.httpMethod = "HEAD"
66 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
67 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
   |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
68 |         }
69 |         .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                       `- error: cannot find type 'URLSessionDelegate' in scope
21 |     /// Handles a server-trust authentication challenge without certificate validation.
22 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                                           `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 |     /// Handles a server-trust authentication challenge without certificate validation.
22 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 |         _ session: URLSession,
28 |         didReceive challenge: URLAuthenticationChallenge
29 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
   |                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 |         // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |     /// - Returns: The disposition and optional credential that the session should use.
26 |     public func urlSession(
27 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |         didReceive challenge: URLAuthenticationChallenge
29 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
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/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |     public func urlSession(
27 |         _ session: URLSession,
28 |         didReceive challenge: URLAuthenticationChallenge
   |                               `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' 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 URLAuthenticationChallenge = AnyObject
  |                  `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:49:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | ///
48 | /// The declarations in this scope provide focused utilities while preserving the type’s standard behavior.
49 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
50 |     /// A URLSession that ignores SSL certificate errors.
51 |     public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 |         return (.performDefaultHandling, nil)
33 | #else
34 |         switch challenge.protectionSpace.authenticationMethod {
   |                          `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 |         case NSURLAuthenticationMethodServerTrust:
36 |             // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 |         switch challenge.protectionSpace.authenticationMethod {
35 |         case NSURLAuthenticationMethodServerTrust:
   |              `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 |         case NSURLAuthenticationMethodServerTrust:
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                  `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 |             return (.useCredential, cred)
39 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 |         case NSURLAuthenticationMethodServerTrust:
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                                                    `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 |             return (.useCredential, cred)
39 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:38:22: error: cannot infer contextual base in reference to member 'useCredential'
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
38 |             return (.useCredential, cred)
   |                      `- error: cannot infer contextual base in reference to member 'useCredential'
39 |         default:
40 |             return (.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:40:22: error: cannot infer contextual base in reference to member 'performDefaultHandling'
38 |             return (.useCredential, cred)
39 |         default:
40 |             return (.performDefaultHandling, nil)
   |                      `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
41 |         }
42 | #endif
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[108/221] Compiling SwiftExtras Task+.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:26:25: error: cannot find 'DispatchSemaphore' in scope
24 |         operation: @escaping @Sendable () async throws -> Success
25 |     ) {
26 |         let semaphore = DispatchSemaphore(value: 0)
   |                         `- error: cannot find 'DispatchSemaphore' in scope
27 |
28 |         _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:49:23: error: cannot find 'URLRequest' in scope
47 |     /// - Returns: A Boolean value indicating whether the URL is reachable.
48 |     public func isReachable() async -> Bool {
49 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
50 |         request.httpMethod = "HEAD"
51 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:53:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |
52 |         do {
53 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
   |                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
54 |             return (response as? HTTPURLResponse)?.statusCode == 200
55 |         } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:54:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 |         do {
53 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
54 |             return (response as? HTTPURLResponse)?.statusCode == 200
   |                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 |         } catch {
56 |             return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:23: error: cannot find 'URLRequest' in scope
62 |     ///   - completion: A closure that is called with the result of the request.
63 |     public func isReachable(completion: @escaping (Bool) -> Void) {
64 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
65 |         request.httpMethod = "HEAD"
66 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:66:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 |         var request = URLRequest(url: self)
65 |         request.httpMethod = "HEAD"
66 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
   |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
67 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
68 |         }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:67:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 |         request.httpMethod = "HEAD"
66 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
67 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
   |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
68 |         }
69 |         .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                       `- error: cannot find type 'URLSessionDelegate' in scope
21 |     /// Handles a server-trust authentication challenge without certificate validation.
22 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                                           `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 |     /// Handles a server-trust authentication challenge without certificate validation.
22 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 |         _ session: URLSession,
28 |         didReceive challenge: URLAuthenticationChallenge
29 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
   |                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 |         // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |     /// - Returns: The disposition and optional credential that the session should use.
26 |     public func urlSession(
27 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |         didReceive challenge: URLAuthenticationChallenge
29 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
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/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |     public func urlSession(
27 |         _ session: URLSession,
28 |         didReceive challenge: URLAuthenticationChallenge
   |                               `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' 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 URLAuthenticationChallenge = AnyObject
  |                  `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:49:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | ///
48 | /// The declarations in this scope provide focused utilities while preserving the type’s standard behavior.
49 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
50 |     /// A URLSession that ignores SSL certificate errors.
51 |     public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 |         return (.performDefaultHandling, nil)
33 | #else
34 |         switch challenge.protectionSpace.authenticationMethod {
   |                          `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 |         case NSURLAuthenticationMethodServerTrust:
36 |             // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 |         switch challenge.protectionSpace.authenticationMethod {
35 |         case NSURLAuthenticationMethodServerTrust:
   |              `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 |         case NSURLAuthenticationMethodServerTrust:
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                  `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 |             return (.useCredential, cred)
39 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 |         case NSURLAuthenticationMethodServerTrust:
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                                                    `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 |             return (.useCredential, cred)
39 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:38:22: error: cannot infer contextual base in reference to member 'useCredential'
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
38 |             return (.useCredential, cred)
   |                      `- error: cannot infer contextual base in reference to member 'useCredential'
39 |         default:
40 |             return (.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:40:22: error: cannot infer contextual base in reference to member 'performDefaultHandling'
38 |             return (.useCredential, cred)
39 |         default:
40 |             return (.performDefaultHandling, nil)
   |                      `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
41 |         }
42 | #endif
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[109/221] Compiling SwiftExtras Text+Gradient.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:26:25: error: cannot find 'DispatchSemaphore' in scope
24 |         operation: @escaping @Sendable () async throws -> Success
25 |     ) {
26 |         let semaphore = DispatchSemaphore(value: 0)
   |                         `- error: cannot find 'DispatchSemaphore' in scope
27 |
28 |         _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:49:23: error: cannot find 'URLRequest' in scope
47 |     /// - Returns: A Boolean value indicating whether the URL is reachable.
48 |     public func isReachable() async -> Bool {
49 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
50 |         request.httpMethod = "HEAD"
51 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:53:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |
52 |         do {
53 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
   |                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
54 |             return (response as? HTTPURLResponse)?.statusCode == 200
55 |         } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:54:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 |         do {
53 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
54 |             return (response as? HTTPURLResponse)?.statusCode == 200
   |                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 |         } catch {
56 |             return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:23: error: cannot find 'URLRequest' in scope
62 |     ///   - completion: A closure that is called with the result of the request.
63 |     public func isReachable(completion: @escaping (Bool) -> Void) {
64 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
65 |         request.httpMethod = "HEAD"
66 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:66:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 |         var request = URLRequest(url: self)
65 |         request.httpMethod = "HEAD"
66 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
   |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
67 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
68 |         }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:67:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 |         request.httpMethod = "HEAD"
66 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
67 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
   |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
68 |         }
69 |         .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                       `- error: cannot find type 'URLSessionDelegate' in scope
21 |     /// Handles a server-trust authentication challenge without certificate validation.
22 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                                           `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 |     /// Handles a server-trust authentication challenge without certificate validation.
22 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 |         _ session: URLSession,
28 |         didReceive challenge: URLAuthenticationChallenge
29 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
   |                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 |         // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |     /// - Returns: The disposition and optional credential that the session should use.
26 |     public func urlSession(
27 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |         didReceive challenge: URLAuthenticationChallenge
29 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
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/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |     public func urlSession(
27 |         _ session: URLSession,
28 |         didReceive challenge: URLAuthenticationChallenge
   |                               `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' 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 URLAuthenticationChallenge = AnyObject
  |                  `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:49:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | ///
48 | /// The declarations in this scope provide focused utilities while preserving the type’s standard behavior.
49 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
50 |     /// A URLSession that ignores SSL certificate errors.
51 |     public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 |         return (.performDefaultHandling, nil)
33 | #else
34 |         switch challenge.protectionSpace.authenticationMethod {
   |                          `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 |         case NSURLAuthenticationMethodServerTrust:
36 |             // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 |         switch challenge.protectionSpace.authenticationMethod {
35 |         case NSURLAuthenticationMethodServerTrust:
   |              `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 |         case NSURLAuthenticationMethodServerTrust:
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                  `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 |             return (.useCredential, cred)
39 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 |         case NSURLAuthenticationMethodServerTrust:
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                                                    `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 |             return (.useCredential, cred)
39 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:38:22: error: cannot infer contextual base in reference to member 'useCredential'
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
38 |             return (.useCredential, cred)
   |                      `- error: cannot infer contextual base in reference to member 'useCredential'
39 |         default:
40 |             return (.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:40:22: error: cannot infer contextual base in reference to member 'performDefaultHandling'
38 |             return (.useCredential, cred)
39 |         default:
40 |             return (.performDefaultHandling, nil)
   |                      `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
41 |         }
42 | #endif
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[110/221] Compiling SwiftExtras TimeInterval+.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:26:25: error: cannot find 'DispatchSemaphore' in scope
24 |         operation: @escaping @Sendable () async throws -> Success
25 |     ) {
26 |         let semaphore = DispatchSemaphore(value: 0)
   |                         `- error: cannot find 'DispatchSemaphore' in scope
27 |
28 |         _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:49:23: error: cannot find 'URLRequest' in scope
47 |     /// - Returns: A Boolean value indicating whether the URL is reachable.
48 |     public func isReachable() async -> Bool {
49 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
50 |         request.httpMethod = "HEAD"
51 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:53:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |
52 |         do {
53 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
   |                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
54 |             return (response as? HTTPURLResponse)?.statusCode == 200
55 |         } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:54:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 |         do {
53 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
54 |             return (response as? HTTPURLResponse)?.statusCode == 200
   |                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 |         } catch {
56 |             return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:23: error: cannot find 'URLRequest' in scope
62 |     ///   - completion: A closure that is called with the result of the request.
63 |     public func isReachable(completion: @escaping (Bool) -> Void) {
64 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
65 |         request.httpMethod = "HEAD"
66 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:66:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 |         var request = URLRequest(url: self)
65 |         request.httpMethod = "HEAD"
66 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
   |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
67 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
68 |         }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:67:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 |         request.httpMethod = "HEAD"
66 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
67 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
   |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
68 |         }
69 |         .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                       `- error: cannot find type 'URLSessionDelegate' in scope
21 |     /// Handles a server-trust authentication challenge without certificate validation.
22 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                                           `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 |     /// Handles a server-trust authentication challenge without certificate validation.
22 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 |         _ session: URLSession,
28 |         didReceive challenge: URLAuthenticationChallenge
29 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
   |                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 |         // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |     /// - Returns: The disposition and optional credential that the session should use.
26 |     public func urlSession(
27 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |         didReceive challenge: URLAuthenticationChallenge
29 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
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/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |     public func urlSession(
27 |         _ session: URLSession,
28 |         didReceive challenge: URLAuthenticationChallenge
   |                               `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' 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 URLAuthenticationChallenge = AnyObject
  |                  `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:49:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | ///
48 | /// The declarations in this scope provide focused utilities while preserving the type’s standard behavior.
49 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
50 |     /// A URLSession that ignores SSL certificate errors.
51 |     public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 |         return (.performDefaultHandling, nil)
33 | #else
34 |         switch challenge.protectionSpace.authenticationMethod {
   |                          `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 |         case NSURLAuthenticationMethodServerTrust:
36 |             // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 |         switch challenge.protectionSpace.authenticationMethod {
35 |         case NSURLAuthenticationMethodServerTrust:
   |              `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 |         case NSURLAuthenticationMethodServerTrust:
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                  `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 |             return (.useCredential, cred)
39 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 |         case NSURLAuthenticationMethodServerTrust:
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                                                    `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 |             return (.useCredential, cred)
39 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:38:22: error: cannot infer contextual base in reference to member 'useCredential'
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
38 |             return (.useCredential, cred)
   |                      `- error: cannot infer contextual base in reference to member 'useCredential'
39 |         default:
40 |             return (.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:40:22: error: cannot infer contextual base in reference to member 'performDefaultHandling'
38 |             return (.useCredential, cred)
39 |         default:
40 |             return (.performDefaultHandling, nil)
   |                      `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
41 |         }
42 | #endif
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[111/221] Compiling SwiftExtras UIDevice+Utilities.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:26:25: error: cannot find 'DispatchSemaphore' in scope
24 |         operation: @escaping @Sendable () async throws -> Success
25 |     ) {
26 |         let semaphore = DispatchSemaphore(value: 0)
   |                         `- error: cannot find 'DispatchSemaphore' in scope
27 |
28 |         _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:49:23: error: cannot find 'URLRequest' in scope
47 |     /// - Returns: A Boolean value indicating whether the URL is reachable.
48 |     public func isReachable() async -> Bool {
49 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
50 |         request.httpMethod = "HEAD"
51 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:53:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |
52 |         do {
53 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
   |                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
54 |             return (response as? HTTPURLResponse)?.statusCode == 200
55 |         } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:54:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 |         do {
53 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
54 |             return (response as? HTTPURLResponse)?.statusCode == 200
   |                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 |         } catch {
56 |             return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:23: error: cannot find 'URLRequest' in scope
62 |     ///   - completion: A closure that is called with the result of the request.
63 |     public func isReachable(completion: @escaping (Bool) -> Void) {
64 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
65 |         request.httpMethod = "HEAD"
66 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:66:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 |         var request = URLRequest(url: self)
65 |         request.httpMethod = "HEAD"
66 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
   |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
67 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
68 |         }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:67:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 |         request.httpMethod = "HEAD"
66 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
67 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
   |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
68 |         }
69 |         .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                       `- error: cannot find type 'URLSessionDelegate' in scope
21 |     /// Handles a server-trust authentication challenge without certificate validation.
22 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                                           `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 |     /// Handles a server-trust authentication challenge without certificate validation.
22 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 |         _ session: URLSession,
28 |         didReceive challenge: URLAuthenticationChallenge
29 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
   |                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 |         // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |     /// - Returns: The disposition and optional credential that the session should use.
26 |     public func urlSession(
27 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |         didReceive challenge: URLAuthenticationChallenge
29 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
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/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |     public func urlSession(
27 |         _ session: URLSession,
28 |         didReceive challenge: URLAuthenticationChallenge
   |                               `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' 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 URLAuthenticationChallenge = AnyObject
  |                  `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:49:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | ///
48 | /// The declarations in this scope provide focused utilities while preserving the type’s standard behavior.
49 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
50 |     /// A URLSession that ignores SSL certificate errors.
51 |     public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 |         return (.performDefaultHandling, nil)
33 | #else
34 |         switch challenge.protectionSpace.authenticationMethod {
   |                          `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 |         case NSURLAuthenticationMethodServerTrust:
36 |             // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 |         switch challenge.protectionSpace.authenticationMethod {
35 |         case NSURLAuthenticationMethodServerTrust:
   |              `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 |         case NSURLAuthenticationMethodServerTrust:
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                  `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 |             return (.useCredential, cred)
39 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 |         case NSURLAuthenticationMethodServerTrust:
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                                                    `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 |             return (.useCredential, cred)
39 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:38:22: error: cannot infer contextual base in reference to member 'useCredential'
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
38 |             return (.useCredential, cred)
   |                      `- error: cannot infer contextual base in reference to member 'useCredential'
39 |         default:
40 |             return (.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:40:22: error: cannot infer contextual base in reference to member 'performDefaultHandling'
38 |             return (.useCredential, cred)
39 |         default:
40 |             return (.performDefaultHandling, nil)
   |                      `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
41 |         }
42 | #endif
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[112/221] Compiling SwiftExtras URL+.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:26:25: error: cannot find 'DispatchSemaphore' in scope
24 |         operation: @escaping @Sendable () async throws -> Success
25 |     ) {
26 |         let semaphore = DispatchSemaphore(value: 0)
   |                         `- error: cannot find 'DispatchSemaphore' in scope
27 |
28 |         _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:49:23: error: cannot find 'URLRequest' in scope
47 |     /// - Returns: A Boolean value indicating whether the URL is reachable.
48 |     public func isReachable() async -> Bool {
49 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
50 |         request.httpMethod = "HEAD"
51 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:53:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |
52 |         do {
53 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
   |                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
54 |             return (response as? HTTPURLResponse)?.statusCode == 200
55 |         } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:54:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 |         do {
53 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
54 |             return (response as? HTTPURLResponse)?.statusCode == 200
   |                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 |         } catch {
56 |             return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:23: error: cannot find 'URLRequest' in scope
62 |     ///   - completion: A closure that is called with the result of the request.
63 |     public func isReachable(completion: @escaping (Bool) -> Void) {
64 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
65 |         request.httpMethod = "HEAD"
66 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:66:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 |         var request = URLRequest(url: self)
65 |         request.httpMethod = "HEAD"
66 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
   |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
67 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
68 |         }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:67:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 |         request.httpMethod = "HEAD"
66 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
67 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
   |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
68 |         }
69 |         .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                       `- error: cannot find type 'URLSessionDelegate' in scope
21 |     /// Handles a server-trust authentication challenge without certificate validation.
22 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                                           `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 |     /// Handles a server-trust authentication challenge without certificate validation.
22 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 |         _ session: URLSession,
28 |         didReceive challenge: URLAuthenticationChallenge
29 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
   |                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 |         // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |     /// - Returns: The disposition and optional credential that the session should use.
26 |     public func urlSession(
27 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |         didReceive challenge: URLAuthenticationChallenge
29 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
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/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |     public func urlSession(
27 |         _ session: URLSession,
28 |         didReceive challenge: URLAuthenticationChallenge
   |                               `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' 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 URLAuthenticationChallenge = AnyObject
  |                  `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:49:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | ///
48 | /// The declarations in this scope provide focused utilities while preserving the type’s standard behavior.
49 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
50 |     /// A URLSession that ignores SSL certificate errors.
51 |     public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 |         return (.performDefaultHandling, nil)
33 | #else
34 |         switch challenge.protectionSpace.authenticationMethod {
   |                          `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 |         case NSURLAuthenticationMethodServerTrust:
36 |             // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 |         switch challenge.protectionSpace.authenticationMethod {
35 |         case NSURLAuthenticationMethodServerTrust:
   |              `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 |         case NSURLAuthenticationMethodServerTrust:
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                  `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 |             return (.useCredential, cred)
39 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 |         case NSURLAuthenticationMethodServerTrust:
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                                                    `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 |             return (.useCredential, cred)
39 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:38:22: error: cannot infer contextual base in reference to member 'useCredential'
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
38 |             return (.useCredential, cred)
   |                      `- error: cannot infer contextual base in reference to member 'useCredential'
39 |         default:
40 |             return (.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:40:22: error: cannot infer contextual base in reference to member 'performDefaultHandling'
38 |             return (.useCredential, cred)
39 |         default:
40 |             return (.performDefaultHandling, nil)
   |                      `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
41 |         }
42 | #endif
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[113/221] Compiling SwiftExtras URLSession.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:26:25: error: cannot find 'DispatchSemaphore' in scope
24 |         operation: @escaping @Sendable () async throws -> Success
25 |     ) {
26 |         let semaphore = DispatchSemaphore(value: 0)
   |                         `- error: cannot find 'DispatchSemaphore' in scope
27 |
28 |         _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:49:23: error: cannot find 'URLRequest' in scope
47 |     /// - Returns: A Boolean value indicating whether the URL is reachable.
48 |     public func isReachable() async -> Bool {
49 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
50 |         request.httpMethod = "HEAD"
51 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:53:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |
52 |         do {
53 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
   |                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
54 |             return (response as? HTTPURLResponse)?.statusCode == 200
55 |         } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:54:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 |         do {
53 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
54 |             return (response as? HTTPURLResponse)?.statusCode == 200
   |                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 |         } catch {
56 |             return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:23: error: cannot find 'URLRequest' in scope
62 |     ///   - completion: A closure that is called with the result of the request.
63 |     public func isReachable(completion: @escaping (Bool) -> Void) {
64 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
65 |         request.httpMethod = "HEAD"
66 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:66:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 |         var request = URLRequest(url: self)
65 |         request.httpMethod = "HEAD"
66 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
   |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
67 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
68 |         }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:67:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 |         request.httpMethod = "HEAD"
66 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
67 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
   |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
68 |         }
69 |         .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                       `- error: cannot find type 'URLSessionDelegate' in scope
21 |     /// Handles a server-trust authentication challenge without certificate validation.
22 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
   |                                                                           `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 |     /// Handles a server-trust authentication challenge without certificate validation.
22 |     /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 |         _ session: URLSession,
28 |         didReceive challenge: URLAuthenticationChallenge
29 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
   |                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 |         // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |     /// - Returns: The disposition and optional credential that the session should use.
26 |     public func urlSession(
27 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |         didReceive challenge: URLAuthenticationChallenge
29 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
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/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |     public func urlSession(
27 |         _ session: URLSession,
28 |         didReceive challenge: URLAuthenticationChallenge
   |                               `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |     ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' 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 URLAuthenticationChallenge = AnyObject
  |                  `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:49:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | ///
48 | /// The declarations in this scope provide focused utilities while preserving the type’s standard behavior.
49 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
50 |     /// A URLSession that ignores SSL certificate errors.
51 |     public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 |         return (.performDefaultHandling, nil)
33 | #else
34 |         switch challenge.protectionSpace.authenticationMethod {
   |                          `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 |         case NSURLAuthenticationMethodServerTrust:
36 |             // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 |         switch challenge.protectionSpace.authenticationMethod {
35 |         case NSURLAuthenticationMethodServerTrust:
   |              `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 |         case NSURLAuthenticationMethodServerTrust:
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                  `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 |             return (.useCredential, cred)
39 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 |         case NSURLAuthenticationMethodServerTrust:
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
   |                                                                    `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 |             return (.useCredential, cred)
39 |         default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:38:22: error: cannot infer contextual base in reference to member 'useCredential'
36 |             // No trust APIs on Linux
37 |             let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
38 |             return (.useCredential, cred)
   |                      `- error: cannot infer contextual base in reference to member 'useCredential'
39 |         default:
40 |             return (.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:40:22: error: cannot infer contextual base in reference to member 'performDefaultHandling'
38 |             return (.useCredential, cred)
39 |         default:
40 |             return (.performDefaultHandling, nil)
   |                      `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
41 |         }
42 | #endif
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[114/221] Compiling SwiftExtras DisclosureSection.swift
[115/221] Compiling SwiftExtras HorizontalStepper.swift
[116/221] Compiling SwiftExtras IndexedList.swift
[117/221] Compiling SwiftExtras LabeledTextField.swift
[118/221] Compiling SwiftExtras LimitedTextField.swift
[119/221] Compiling SwiftExtras MatchedPopover.swift
[120/221] Compiling SwiftExtras MonthYearPickerView.swift
[121/221] Compiling SwiftExtras MultiSelectPickerView.swift
[122/221] Compiling SwiftExtras MultiSelectView.swift
[123/221] Compiling SwiftExtras NavigationViewIfNeeded.swift
[124/221] Compiling SwiftExtras NotificationOnboarding.swift
[125/221] Compiling SwiftExtras NotificationView.swift
[126/221] Compiling SwiftExtras Onboarding.swift
[127/221] Compiling SwiftExtras SEAcknowledgementView.swift
[128/221] Compiling SwiftExtras SEChangeLogView.swift
[129/221] Compiling SwiftExtras SESettingsView.swift
[130/221] Compiling SwiftExtras SplitActionButton.swift
[131/221] Compiling SwiftExtras SpotlightOnboarding.swift
[132/221] Compiling SwiftExtras VerificationField.swift
[133/221] Compiling SwiftExtras resource_bundle_accessor.swift
[134/221] Compiling SwiftExtras Date+Identifiable.swift
[135/221] Compiling SwiftExtras Date+getFormattedDate.swift
[136/221] Compiling SwiftExtras Dictionary+RawRepresentable.swift
[137/221] Compiling SwiftExtras Double+.swift
[138/221] Compiling SwiftExtras Error+errorCode.swift
[139/221] Compiling SwiftExtras Float.swift
[140/221] Compiling SwiftExtras Image+Platform.swift
[141/221] Compiling SwiftExtras Image+centerCropped.swift
[142/221] Compiling SwiftExtras PlatformImage+.swift
[143/221] Compiling SwiftExtras Int+.swift
[144/221] Compiling SwiftExtras Locale+Utilities.swift
[145/221] Compiling SwiftExtras LocalizedStringKey+.swift
[146/221] Compiling SwiftExtras LocalizedStringKey+Identifiable.swift
[147/221] Compiling SwiftExtras Logger+.swift
[148/221] Compiling SwiftExtras NotificationName+.swift
[149/221] Compiling SwiftExtras Optional+isNilOrEmpty.swift
[150/221] Compiling SwiftExtras ProcessInfo+Utilities.swift
[151/221] Compiling SwiftExtras Sequence+.swift
[152/221] Compiling SwiftExtras String+ANSIColors.swift
[153/221] Compiling SwiftExtras String+Base64.swift
[154/221] Compiling SwiftExtras String+HTML.swift
[155/221] Compiling SwiftExtras NSPasteboard+string.swift
[156/221] Compiling SwiftExtras PlatformTypes.swift
[157/221] Compiling SwiftExtras PlatformViewRepresentable.swift
[158/221] Compiling SwiftExtras openURL.swift
[159/221] Compiling SwiftExtras RegularExpressionOperator.swift
[160/221] Compiling SwiftExtras optionalBinding.swift
[161/221] Compiling SwiftExtras PictureInPicture.swift
[162/221] Compiling SwiftExtras PictureInPictureController.swift
[163/221] Compiling SwiftExtras PictureInPictureLayerView.swift
[164/221] Compiling SwiftExtras PictureInPictureRenderer.swift
[165/221] Compiling SwiftExtras View+PictureInPicture.swift
[166/221] Compiling SwiftExtras AutoEquatable.swift
[167/221] Compiling SwiftExtras MailView.swift
[168/221] Compiling SwiftExtras SFSafari.swift
[169/221] Compiling SwiftExtras WebView.swift
[170/221] Compiling SwiftExtras HexShape.swift
[171/221] Compiling SwiftExtras AnyCodable.swift
[172/221] Compiling SwiftExtras DeviceInfo.swift
[173/221] Compiling SwiftExtras Dynamic.swift
[174/221] Compiling SwiftExtras DynamicJSON.swift
[175/221] Compiling SwiftExtras IslandToastCard.swift
[176/221] Compiling SwiftExtras UserDefaults+subscript.swift
[177/221] Compiling SwiftExtras View+Error.swift
[178/221] Compiling SwiftExtras View+Frame.swift
[179/221] Compiling SwiftExtras View+Log.swift
[180/221] Compiling SwiftExtras View+Task.swift
[181/221] Compiling SwiftExtras View+adaptiveColor.swift
[182/221] Compiling SwiftExtras View+colorScheme.swift
[183/221] Compiling SwiftExtras View+getRootViewController.swift
[184/221] Compiling SwiftExtras View+horizontallyCentered.swift
[185/221] Compiling SwiftExtras View+modifier.swift
[186/221] Compiling SwiftExtras View+onChange.swift
[187/221] Compiling SwiftExtras View+onFirstAppear.swift
[188/221] Compiling SwiftExtras View+onLandscape.swift
[189/221] Compiling SwiftExtras View+onNotification.swift
[190/221] Compiling SwiftExtras View+onboarding.swift
[191/221] Compiling SwiftExtras View+readOffsetX.swift
[192/221] Compiling SwiftExtras View+render.swift
[193/221] Compiling SwiftExtras View+sizeSaver.swift
[194/221] Compiling SwiftExtras View+snapshot.swift
[195/221] Compiling SwiftExtras View+stretchableView.swift
[196/221] Compiling SwiftExtras View+stretchy.swift
[197/221] Compiling SwiftExtras BackgroundRemover.swift
[198/221] Compiling SwiftExtras SensoryFeedback.swift
[199/221] Compiling SwiftExtras AppInfo.swift
[200/221] Compiling SwiftExtras Device.swift
[201/221] Compiling SwiftExtras Binding+onChange.swift
[202/221] Compiling SwiftExtras Binding+optional.swift
[203/221] Compiling SwiftExtras CGFloat+.swift
[204/221] Compiling SwiftExtras CGSize+device.swift
[205/221] Compiling SwiftExtras Collection+.swift
[206/221] Compiling SwiftExtras Collection+safeIndex.swift
[207/221] Compiling SwiftExtras Color+Codable.swift
[208/221] Compiling SwiftExtras Color+Identifiable.swift
[209/221] Compiling SwiftExtras Color+colorBlind.swift
[210/221] Compiling SwiftExtras Color+components.swift
[211/221] Compiling SwiftExtras Color+default.swift
[212/221] Compiling SwiftExtras Color+dynamicColor.swift
[213/221] Compiling SwiftExtras Color+init.swift
[214/221] Compiling SwiftExtras Color+random.swift
[215/221] Compiling SwiftExtras PlatformColor+.swift
[216/221] Compiling SwiftExtras Data.swift
[217/221] Compiling SwiftExtras Date+.swift
BUILD FAILURE 6.3 wasm