The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftExtras, reference 1.2.8 (eb8f9d), with Swift 6.3 for Wasm on 29 Sep 2026 15:44:36 UTC.

Build Command

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

49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
   |                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 |         } catch {
53 |             return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:61:23: error: cannot find 'URLRequest' in scope
59 |     ///   - completion: A closure that is called with the result of the request.
60 |     public func isReachable(completion: @escaping (Bool) -> Void) {
61 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:63:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
61 |         var request = URLRequest(url: self)
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
   |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
65 |         }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
   |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 |         }
66 |         .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 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
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 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
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 |     ///   - completionHandler: The completion handler to call with the disposition and credential.
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:46:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
44 | }
45 |
46 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 |     /// A URLSession that ignores SSL certificate errors.
48 |     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>
[179/220] Compiling SwiftExtras String+clean.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:23:25: error: cannot find 'DispatchSemaphore' in scope
21 |         operation: @escaping @Sendable () async throws -> Success
22 |     ) {
23 |         let semaphore = DispatchSemaphore(value: 0)
   |                         `- error: cannot find 'DispatchSemaphore' in scope
24 |
25 |         _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:46:23: error: cannot find 'URLRequest' in scope
44 |     /// - Returns: A Boolean value indicating whether the URL is reachable.
45 |     public func isReachable() async -> Bool {
46 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
47 |         request.httpMethod = "HEAD"
48 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:50:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
48 |
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
   |                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
52 |         } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:51:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
   |                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 |         } catch {
53 |             return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:61:23: error: cannot find 'URLRequest' in scope
59 |     ///   - completion: A closure that is called with the result of the request.
60 |     public func isReachable(completion: @escaping (Bool) -> Void) {
61 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:63:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
61 |         var request = URLRequest(url: self)
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
   |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
65 |         }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
   |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 |         }
66 |         .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 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
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 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
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 |     ///   - completionHandler: The completion handler to call with the disposition and credential.
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:46:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
44 | }
45 |
46 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 |     /// A URLSession that ignores SSL certificate errors.
48 |     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>
[180/220] Compiling SwiftExtras String+contains.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:23:25: error: cannot find 'DispatchSemaphore' in scope
21 |         operation: @escaping @Sendable () async throws -> Success
22 |     ) {
23 |         let semaphore = DispatchSemaphore(value: 0)
   |                         `- error: cannot find 'DispatchSemaphore' in scope
24 |
25 |         _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:46:23: error: cannot find 'URLRequest' in scope
44 |     /// - Returns: A Boolean value indicating whether the URL is reachable.
45 |     public func isReachable() async -> Bool {
46 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
47 |         request.httpMethod = "HEAD"
48 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:50:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
48 |
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
   |                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
52 |         } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:51:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
   |                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 |         } catch {
53 |             return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:61:23: error: cannot find 'URLRequest' in scope
59 |     ///   - completion: A closure that is called with the result of the request.
60 |     public func isReachable(completion: @escaping (Bool) -> Void) {
61 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:63:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
61 |         var request = URLRequest(url: self)
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
   |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
65 |         }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
   |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 |         }
66 |         .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 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
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 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
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 |     ///   - completionHandler: The completion handler to call with the disposition and credential.
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:46:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
44 | }
45 |
46 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 |     /// A URLSession that ignores SSL certificate errors.
48 |     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>
[181/220] Compiling SwiftExtras String+error.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:23:25: error: cannot find 'DispatchSemaphore' in scope
21 |         operation: @escaping @Sendable () async throws -> Success
22 |     ) {
23 |         let semaphore = DispatchSemaphore(value: 0)
   |                         `- error: cannot find 'DispatchSemaphore' in scope
24 |
25 |         _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:46:23: error: cannot find 'URLRequest' in scope
44 |     /// - Returns: A Boolean value indicating whether the URL is reachable.
45 |     public func isReachable() async -> Bool {
46 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
47 |         request.httpMethod = "HEAD"
48 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:50:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
48 |
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
   |                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
52 |         } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:51:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
   |                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 |         } catch {
53 |             return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:61:23: error: cannot find 'URLRequest' in scope
59 |     ///   - completion: A closure that is called with the result of the request.
60 |     public func isReachable(completion: @escaping (Bool) -> Void) {
61 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:63:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
61 |         var request = URLRequest(url: self)
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
   |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
65 |         }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
   |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 |         }
66 |         .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 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
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 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
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 |     ///   - completionHandler: The completion handler to call with the disposition and credential.
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:46:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
44 | }
45 |
46 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 |     /// A URLSession that ignores SSL certificate errors.
48 |     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>
[182/220] Compiling SwiftExtras String+fuzzyMatches.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:23:25: error: cannot find 'DispatchSemaphore' in scope
21 |         operation: @escaping @Sendable () async throws -> Success
22 |     ) {
23 |         let semaphore = DispatchSemaphore(value: 0)
   |                         `- error: cannot find 'DispatchSemaphore' in scope
24 |
25 |         _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:46:23: error: cannot find 'URLRequest' in scope
44 |     /// - Returns: A Boolean value indicating whether the URL is reachable.
45 |     public func isReachable() async -> Bool {
46 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
47 |         request.httpMethod = "HEAD"
48 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:50:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
48 |
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
   |                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
52 |         } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:51:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
   |                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 |         } catch {
53 |             return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:61:23: error: cannot find 'URLRequest' in scope
59 |     ///   - completion: A closure that is called with the result of the request.
60 |     public func isReachable(completion: @escaping (Bool) -> Void) {
61 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:63:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
61 |         var request = URLRequest(url: self)
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
   |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
65 |         }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
   |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 |         }
66 |         .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 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
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 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
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 |     ///   - completionHandler: The completion handler to call with the disposition and credential.
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:46:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
44 | }
45 |
46 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 |     /// A URLSession that ignores SSL certificate errors.
48 |     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>
[183/220] Compiling SwiftExtras String+hashed.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:23:25: error: cannot find 'DispatchSemaphore' in scope
21 |         operation: @escaping @Sendable () async throws -> Success
22 |     ) {
23 |         let semaphore = DispatchSemaphore(value: 0)
   |                         `- error: cannot find 'DispatchSemaphore' in scope
24 |
25 |         _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:46:23: error: cannot find 'URLRequest' in scope
44 |     /// - Returns: A Boolean value indicating whether the URL is reachable.
45 |     public func isReachable() async -> Bool {
46 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
47 |         request.httpMethod = "HEAD"
48 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:50:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
48 |
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
   |                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
52 |         } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:51:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
   |                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 |         } catch {
53 |             return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:61:23: error: cannot find 'URLRequest' in scope
59 |     ///   - completion: A closure that is called with the result of the request.
60 |     public func isReachable(completion: @escaping (Bool) -> Void) {
61 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:63:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
61 |         var request = URLRequest(url: self)
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
   |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
65 |         }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
   |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 |         }
66 |         .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 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
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 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
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 |     ///   - completionHandler: The completion handler to call with the disposition and credential.
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:46:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
44 | }
45 |
46 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 |     /// A URLSession that ignores SSL certificate errors.
48 |     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>
[184/220] Compiling SwiftExtras String+slice.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:23:25: error: cannot find 'DispatchSemaphore' in scope
21 |         operation: @escaping @Sendable () async throws -> Success
22 |     ) {
23 |         let semaphore = DispatchSemaphore(value: 0)
   |                         `- error: cannot find 'DispatchSemaphore' in scope
24 |
25 |         _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:46:23: error: cannot find 'URLRequest' in scope
44 |     /// - Returns: A Boolean value indicating whether the URL is reachable.
45 |     public func isReachable() async -> Bool {
46 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
47 |         request.httpMethod = "HEAD"
48 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:50:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
48 |
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
   |                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
52 |         } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:51:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
   |                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 |         } catch {
53 |             return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:61:23: error: cannot find 'URLRequest' in scope
59 |     ///   - completion: A closure that is called with the result of the request.
60 |     public func isReachable(completion: @escaping (Bool) -> Void) {
61 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:63:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
61 |         var request = URLRequest(url: self)
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
   |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
65 |         }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
   |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 |         }
66 |         .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 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
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 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
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 |     ///   - completionHandler: The completion handler to call with the disposition and credential.
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:46:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
44 | }
45 |
46 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 |     /// A URLSession that ignores SSL certificate errors.
48 |     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>
[185/220] Compiling SwiftExtras String+slugified.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:23:25: error: cannot find 'DispatchSemaphore' in scope
21 |         operation: @escaping @Sendable () async throws -> Success
22 |     ) {
23 |         let semaphore = DispatchSemaphore(value: 0)
   |                         `- error: cannot find 'DispatchSemaphore' in scope
24 |
25 |         _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:46:23: error: cannot find 'URLRequest' in scope
44 |     /// - Returns: A Boolean value indicating whether the URL is reachable.
45 |     public func isReachable() async -> Bool {
46 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
47 |         request.httpMethod = "HEAD"
48 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:50:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
48 |
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
   |                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
52 |         } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:51:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
   |                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 |         } catch {
53 |             return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:61:23: error: cannot find 'URLRequest' in scope
59 |     ///   - completion: A closure that is called with the result of the request.
60 |     public func isReachable(completion: @escaping (Bool) -> Void) {
61 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:63:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
61 |         var request = URLRequest(url: self)
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
   |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
65 |         }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
   |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 |         }
66 |         .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 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
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 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
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 |     ///   - completionHandler: The completion handler to call with the disposition and credential.
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:46:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
44 | }
45 |
46 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 |     /// A URLSession that ignores SSL certificate errors.
48 |     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>
[186/220] Compiling SwiftExtras String+subscript.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:23:25: error: cannot find 'DispatchSemaphore' in scope
21 |         operation: @escaping @Sendable () async throws -> Success
22 |     ) {
23 |         let semaphore = DispatchSemaphore(value: 0)
   |                         `- error: cannot find 'DispatchSemaphore' in scope
24 |
25 |         _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:46:23: error: cannot find 'URLRequest' in scope
44 |     /// - Returns: A Boolean value indicating whether the URL is reachable.
45 |     public func isReachable() async -> Bool {
46 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
47 |         request.httpMethod = "HEAD"
48 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:50:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
48 |
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
   |                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
52 |         } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:51:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
   |                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 |         } catch {
53 |             return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:61:23: error: cannot find 'URLRequest' in scope
59 |     ///   - completion: A closure that is called with the result of the request.
60 |     public func isReachable(completion: @escaping (Bool) -> Void) {
61 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:63:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
61 |         var request = URLRequest(url: self)
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
   |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
65 |         }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
   |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 |         }
66 |         .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 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
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 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
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 |     ///   - completionHandler: The completion handler to call with the disposition and credential.
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:46:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
44 | }
45 |
46 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 |     /// A URLSession that ignores SSL certificate errors.
48 |     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>
[187/220] Compiling SwiftExtras String+trimmed.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:23:25: error: cannot find 'DispatchSemaphore' in scope
21 |         operation: @escaping @Sendable () async throws -> Success
22 |     ) {
23 |         let semaphore = DispatchSemaphore(value: 0)
   |                         `- error: cannot find 'DispatchSemaphore' in scope
24 |
25 |         _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:46:23: error: cannot find 'URLRequest' in scope
44 |     /// - Returns: A Boolean value indicating whether the URL is reachable.
45 |     public func isReachable() async -> Bool {
46 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
47 |         request.httpMethod = "HEAD"
48 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:50:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
48 |
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
   |                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
52 |         } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:51:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
   |                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 |         } catch {
53 |             return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:61:23: error: cannot find 'URLRequest' in scope
59 |     ///   - completion: A closure that is called with the result of the request.
60 |     public func isReachable(completion: @escaping (Bool) -> Void) {
61 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:63:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
61 |         var request = URLRequest(url: self)
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
   |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
65 |         }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
   |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 |         }
66 |         .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 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
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 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
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 |     ///   - completionHandler: The completion handler to call with the disposition and credential.
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:46:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
44 | }
45 |
46 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 |     /// A URLSession that ignores SSL certificate errors.
48 |     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>
[188/220] Compiling SwiftExtras String+url.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:23:25: error: cannot find 'DispatchSemaphore' in scope
21 |         operation: @escaping @Sendable () async throws -> Success
22 |     ) {
23 |         let semaphore = DispatchSemaphore(value: 0)
   |                         `- error: cannot find 'DispatchSemaphore' in scope
24 |
25 |         _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:46:23: error: cannot find 'URLRequest' in scope
44 |     /// - Returns: A Boolean value indicating whether the URL is reachable.
45 |     public func isReachable() async -> Bool {
46 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
47 |         request.httpMethod = "HEAD"
48 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:50:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
48 |
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
   |                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
52 |         } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:51:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
   |                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 |         } catch {
53 |             return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:61:23: error: cannot find 'URLRequest' in scope
59 |     ///   - completion: A closure that is called with the result of the request.
60 |     public func isReachable(completion: @escaping (Bool) -> Void) {
61 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:63:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
61 |         var request = URLRequest(url: self)
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
   |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
65 |         }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
   |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 |         }
66 |         .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 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
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 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
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 |     ///   - completionHandler: The completion handler to call with the disposition and credential.
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:46:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
44 | }
45 |
46 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 |     /// A URLSession that ignores SSL certificate errors.
48 |     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>
[189/220] Compiling SwiftExtras StringProtocol+.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:23:25: error: cannot find 'DispatchSemaphore' in scope
21 |         operation: @escaping @Sendable () async throws -> Success
22 |     ) {
23 |         let semaphore = DispatchSemaphore(value: 0)
   |                         `- error: cannot find 'DispatchSemaphore' in scope
24 |
25 |         _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:46:23: error: cannot find 'URLRequest' in scope
44 |     /// - Returns: A Boolean value indicating whether the URL is reachable.
45 |     public func isReachable() async -> Bool {
46 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
47 |         request.httpMethod = "HEAD"
48 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:50:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
48 |
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
   |                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
52 |         } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:51:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
   |                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 |         } catch {
53 |             return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:61:23: error: cannot find 'URLRequest' in scope
59 |     ///   - completion: A closure that is called with the result of the request.
60 |     public func isReachable(completion: @escaping (Bool) -> Void) {
61 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:63:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
61 |         var request = URLRequest(url: self)
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
   |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
65 |         }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
   |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 |         }
66 |         .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 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
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 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
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 |     ///   - completionHandler: The completion handler to call with the disposition and credential.
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:46:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
44 | }
45 |
46 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 |     /// A URLSession that ignores SSL certificate errors.
48 |     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>
[190/220] Compiling SwiftExtras Task+.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:23:25: error: cannot find 'DispatchSemaphore' in scope
21 |         operation: @escaping @Sendable () async throws -> Success
22 |     ) {
23 |         let semaphore = DispatchSemaphore(value: 0)
   |                         `- error: cannot find 'DispatchSemaphore' in scope
24 |
25 |         _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:46:23: error: cannot find 'URLRequest' in scope
44 |     /// - Returns: A Boolean value indicating whether the URL is reachable.
45 |     public func isReachable() async -> Bool {
46 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
47 |         request.httpMethod = "HEAD"
48 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:50:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
48 |
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
   |                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
52 |         } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:51:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
   |                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 |         } catch {
53 |             return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:61:23: error: cannot find 'URLRequest' in scope
59 |     ///   - completion: A closure that is called with the result of the request.
60 |     public func isReachable(completion: @escaping (Bool) -> Void) {
61 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:63:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
61 |         var request = URLRequest(url: self)
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
   |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
65 |         }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
   |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 |         }
66 |         .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 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
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 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
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 |     ///   - completionHandler: The completion handler to call with the disposition and credential.
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:46:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
44 | }
45 |
46 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 |     /// A URLSession that ignores SSL certificate errors.
48 |     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>
[191/220] Compiling SwiftExtras Text+Gradient.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:23:25: error: cannot find 'DispatchSemaphore' in scope
21 |         operation: @escaping @Sendable () async throws -> Success
22 |     ) {
23 |         let semaphore = DispatchSemaphore(value: 0)
   |                         `- error: cannot find 'DispatchSemaphore' in scope
24 |
25 |         _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:46:23: error: cannot find 'URLRequest' in scope
44 |     /// - Returns: A Boolean value indicating whether the URL is reachable.
45 |     public func isReachable() async -> Bool {
46 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
47 |         request.httpMethod = "HEAD"
48 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:50:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
48 |
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
   |                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
52 |         } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:51:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
   |                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 |         } catch {
53 |             return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:61:23: error: cannot find 'URLRequest' in scope
59 |     ///   - completion: A closure that is called with the result of the request.
60 |     public func isReachable(completion: @escaping (Bool) -> Void) {
61 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:63:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
61 |         var request = URLRequest(url: self)
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
   |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
65 |         }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
   |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 |         }
66 |         .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 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
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 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
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 |     ///   - completionHandler: The completion handler to call with the disposition and credential.
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:46:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
44 | }
45 |
46 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 |     /// A URLSession that ignores SSL certificate errors.
48 |     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>
[192/220] Compiling SwiftExtras TimeInterval+.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:23:25: error: cannot find 'DispatchSemaphore' in scope
21 |         operation: @escaping @Sendable () async throws -> Success
22 |     ) {
23 |         let semaphore = DispatchSemaphore(value: 0)
   |                         `- error: cannot find 'DispatchSemaphore' in scope
24 |
25 |         _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:46:23: error: cannot find 'URLRequest' in scope
44 |     /// - Returns: A Boolean value indicating whether the URL is reachable.
45 |     public func isReachable() async -> Bool {
46 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
47 |         request.httpMethod = "HEAD"
48 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:50:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
48 |
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
   |                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
52 |         } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:51:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
   |                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 |         } catch {
53 |             return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:61:23: error: cannot find 'URLRequest' in scope
59 |     ///   - completion: A closure that is called with the result of the request.
60 |     public func isReachable(completion: @escaping (Bool) -> Void) {
61 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:63:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
61 |         var request = URLRequest(url: self)
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
   |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
65 |         }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
   |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 |         }
66 |         .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 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
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 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
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 |     ///   - completionHandler: The completion handler to call with the disposition and credential.
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:46:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
44 | }
45 |
46 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 |     /// A URLSession that ignores SSL certificate errors.
48 |     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>
[193/220] Compiling SwiftExtras UIDevice+Utilities.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:23:25: error: cannot find 'DispatchSemaphore' in scope
21 |         operation: @escaping @Sendable () async throws -> Success
22 |     ) {
23 |         let semaphore = DispatchSemaphore(value: 0)
   |                         `- error: cannot find 'DispatchSemaphore' in scope
24 |
25 |         _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:46:23: error: cannot find 'URLRequest' in scope
44 |     /// - Returns: A Boolean value indicating whether the URL is reachable.
45 |     public func isReachable() async -> Bool {
46 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
47 |         request.httpMethod = "HEAD"
48 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:50:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
48 |
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
   |                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
52 |         } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:51:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
   |                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 |         } catch {
53 |             return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:61:23: error: cannot find 'URLRequest' in scope
59 |     ///   - completion: A closure that is called with the result of the request.
60 |     public func isReachable(completion: @escaping (Bool) -> Void) {
61 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:63:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
61 |         var request = URLRequest(url: self)
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
   |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
65 |         }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
   |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 |         }
66 |         .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 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
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 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
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 |     ///   - completionHandler: The completion handler to call with the disposition and credential.
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:46:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
44 | }
45 |
46 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 |     /// A URLSession that ignores SSL certificate errors.
48 |     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>
[194/220] Compiling SwiftExtras URL+.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:23:25: error: cannot find 'DispatchSemaphore' in scope
21 |         operation: @escaping @Sendable () async throws -> Success
22 |     ) {
23 |         let semaphore = DispatchSemaphore(value: 0)
   |                         `- error: cannot find 'DispatchSemaphore' in scope
24 |
25 |         _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:46:23: error: cannot find 'URLRequest' in scope
44 |     /// - Returns: A Boolean value indicating whether the URL is reachable.
45 |     public func isReachable() async -> Bool {
46 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
47 |         request.httpMethod = "HEAD"
48 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:50:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
48 |
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
   |                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
52 |         } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:51:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
   |                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 |         } catch {
53 |             return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:61:23: error: cannot find 'URLRequest' in scope
59 |     ///   - completion: A closure that is called with the result of the request.
60 |     public func isReachable(completion: @escaping (Bool) -> Void) {
61 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:63:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
61 |         var request = URLRequest(url: self)
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
   |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
65 |         }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
   |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 |         }
66 |         .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 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
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 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
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 |     ///   - completionHandler: The completion handler to call with the disposition and credential.
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:46:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
44 | }
45 |
46 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 |     /// A URLSession that ignores SSL certificate errors.
48 |     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>
[195/220] Compiling SwiftExtras URLSession.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:23:25: error: cannot find 'DispatchSemaphore' in scope
21 |         operation: @escaping @Sendable () async throws -> Success
22 |     ) {
23 |         let semaphore = DispatchSemaphore(value: 0)
   |                         `- error: cannot find 'DispatchSemaphore' in scope
24 |
25 |         _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:46:23: error: cannot find 'URLRequest' in scope
44 |     /// - Returns: A Boolean value indicating whether the URL is reachable.
45 |     public func isReachable() async -> Bool {
46 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
47 |         request.httpMethod = "HEAD"
48 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:50:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
48 |
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
   |                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
52 |         } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:51:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 |         do {
50 |             let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
51 |             return (response as? HTTPURLResponse)?.statusCode == 200
   |                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 |         } catch {
53 |             return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:61:23: error: cannot find 'URLRequest' in scope
59 |     ///   - completion: A closure that is called with the result of the request.
60 |     public func isReachable(completion: @escaping (Bool) -> Void) {
61 |         var request = URLRequest(url: self)
   |                       `- error: cannot find 'URLRequest' in scope
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:63:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
61 |         var request = URLRequest(url: self)
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
   |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
65 |         }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 |         request.httpMethod = "HEAD"
63 |         URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
64 |             completion((response as? HTTPURLResponse)?.statusCode == 200)
   |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 |         }
66 |         .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 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
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 |     /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
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 |     ///   - completionHandler: The completion handler to call with the disposition and credential.
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:46:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
44 | }
45 |
46 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 |     /// A URLSession that ignores SSL certificate errors.
48 |     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>
[196/220] Compiling SwiftExtras BackgroundRemover.swift
[197/220] Compiling SwiftExtras SensoryFeedback.swift
[198/220] Compiling SwiftExtras AppInfo.swift
[199/220] Compiling SwiftExtras Device.swift
[200/220] Compiling SwiftExtras Binding+onChange.swift
[201/220] Compiling SwiftExtras Binding+optional.swift
[202/220] Compiling SwiftExtras CGFloat+.swift
[203/220] Compiling SwiftExtras CGSize+device.swift
[204/220] Compiling SwiftExtras Collection+.swift
[205/220] Compiling SwiftExtras Collection+safeIndex.swift
[206/220] Compiling SwiftExtras Color+Codable.swift
[207/220] Compiling SwiftExtras Color+Identifiable.swift
[208/220] Compiling SwiftExtras Color+colorBlind.swift
[209/220] Compiling SwiftExtras Color+components.swift
[210/220] Compiling SwiftExtras Color+default.swift
[211/220] Compiling SwiftExtras Color+dynamicColor.swift
[212/220] Compiling SwiftExtras Color+init.swift
[213/220] Compiling SwiftExtras Color+random.swift
[214/220] Compiling SwiftExtras PlatformColor+.swift
[215/220] Compiling SwiftExtras Data.swift
[216/220] Compiling SwiftExtras Date+.swift
BUILD FAILURE 6.3 wasm