Build Information
Failed to build SwiftExtras, reference main (5c2565), with Swift 6.2 for Wasm on 13 Oct 2026 11:38:35 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344843-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1Build Log
38 | return (.useCredential, cred)
39 | default:
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[116/221] Compiling SwiftExtras String+Quoted.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:26:25: error: cannot find 'DispatchSemaphore' in scope
24 | operation: @escaping @Sendable () async throws -> Success
25 | ) {
26 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
27 |
28 | _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:49:23: error: cannot find 'URLRequest' in scope
47 | /// - Returns: A Boolean value indicating whether the URL is reachable.
48 | public func isReachable() async -> Bool {
49 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
50 | request.httpMethod = "HEAD"
51 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:53:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
54 | return (response as? HTTPURLResponse)?.statusCode == 200
55 | } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:54:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
54 | return (response as? HTTPURLResponse)?.statusCode == 200
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 | } catch {
56 | return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:23: error: cannot find 'URLRequest' in scope
62 | /// - completion: A closure that is called with the result of the request.
63 | public func isReachable(completion: @escaping (Bool) -> Void) {
64 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:66:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 | var request = URLRequest(url: self)
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
68 | }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:67:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
68 | }
69 | .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 | // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - Returns: The disposition and optional credential that the session should use.
26 | public func urlSession(
27 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | public func urlSession(
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:49:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | ///
48 | /// The declarations in this scope provide focused utilities while preserving the type’s standard behavior.
49 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
50 | /// A URLSession that ignores SSL certificate errors.
51 | public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 | return (.performDefaultHandling, nil)
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
35 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | return (.useCredential, cred)
39 | default:
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[117/221] Compiling SwiftExtras String+Split.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:26:25: error: cannot find 'DispatchSemaphore' in scope
24 | operation: @escaping @Sendable () async throws -> Success
25 | ) {
26 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
27 |
28 | _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:49:23: error: cannot find 'URLRequest' in scope
47 | /// - Returns: A Boolean value indicating whether the URL is reachable.
48 | public func isReachable() async -> Bool {
49 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
50 | request.httpMethod = "HEAD"
51 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:53:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
54 | return (response as? HTTPURLResponse)?.statusCode == 200
55 | } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:54:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
54 | return (response as? HTTPURLResponse)?.statusCode == 200
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 | } catch {
56 | return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:23: error: cannot find 'URLRequest' in scope
62 | /// - completion: A closure that is called with the result of the request.
63 | public func isReachable(completion: @escaping (Bool) -> Void) {
64 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:66:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 | var request = URLRequest(url: self)
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
68 | }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:67:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
68 | }
69 | .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 | // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - Returns: The disposition and optional credential that the session should use.
26 | public func urlSession(
27 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | public func urlSession(
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:49:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | ///
48 | /// The declarations in this scope provide focused utilities while preserving the type’s standard behavior.
49 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
50 | /// A URLSession that ignores SSL certificate errors.
51 | public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 | return (.performDefaultHandling, nil)
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
35 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | return (.useCredential, cred)
39 | default:
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[118/221] Compiling SwiftExtras String+clean.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:26:25: error: cannot find 'DispatchSemaphore' in scope
24 | operation: @escaping @Sendable () async throws -> Success
25 | ) {
26 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
27 |
28 | _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:49:23: error: cannot find 'URLRequest' in scope
47 | /// - Returns: A Boolean value indicating whether the URL is reachable.
48 | public func isReachable() async -> Bool {
49 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
50 | request.httpMethod = "HEAD"
51 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:53:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
54 | return (response as? HTTPURLResponse)?.statusCode == 200
55 | } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:54:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
54 | return (response as? HTTPURLResponse)?.statusCode == 200
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 | } catch {
56 | return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:23: error: cannot find 'URLRequest' in scope
62 | /// - completion: A closure that is called with the result of the request.
63 | public func isReachable(completion: @escaping (Bool) -> Void) {
64 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:66:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 | var request = URLRequest(url: self)
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
68 | }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:67:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
68 | }
69 | .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 | // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - Returns: The disposition and optional credential that the session should use.
26 | public func urlSession(
27 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | public func urlSession(
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:49:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | ///
48 | /// The declarations in this scope provide focused utilities while preserving the type’s standard behavior.
49 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
50 | /// A URLSession that ignores SSL certificate errors.
51 | public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 | return (.performDefaultHandling, nil)
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
35 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | return (.useCredential, cred)
39 | default:
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[119/221] Compiling SwiftExtras String+contains.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:26:25: error: cannot find 'DispatchSemaphore' in scope
24 | operation: @escaping @Sendable () async throws -> Success
25 | ) {
26 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
27 |
28 | _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:49:23: error: cannot find 'URLRequest' in scope
47 | /// - Returns: A Boolean value indicating whether the URL is reachable.
48 | public func isReachable() async -> Bool {
49 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
50 | request.httpMethod = "HEAD"
51 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:53:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
54 | return (response as? HTTPURLResponse)?.statusCode == 200
55 | } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:54:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
54 | return (response as? HTTPURLResponse)?.statusCode == 200
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 | } catch {
56 | return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:23: error: cannot find 'URLRequest' in scope
62 | /// - completion: A closure that is called with the result of the request.
63 | public func isReachable(completion: @escaping (Bool) -> Void) {
64 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:66:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 | var request = URLRequest(url: self)
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
68 | }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:67:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
68 | }
69 | .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 | // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - Returns: The disposition and optional credential that the session should use.
26 | public func urlSession(
27 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | public func urlSession(
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:49:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | ///
48 | /// The declarations in this scope provide focused utilities while preserving the type’s standard behavior.
49 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
50 | /// A URLSession that ignores SSL certificate errors.
51 | public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 | return (.performDefaultHandling, nil)
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
35 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | return (.useCredential, cred)
39 | default:
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[120/221] Compiling SwiftExtras String+error.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:26:25: error: cannot find 'DispatchSemaphore' in scope
24 | operation: @escaping @Sendable () async throws -> Success
25 | ) {
26 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
27 |
28 | _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:49:23: error: cannot find 'URLRequest' in scope
47 | /// - Returns: A Boolean value indicating whether the URL is reachable.
48 | public func isReachable() async -> Bool {
49 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
50 | request.httpMethod = "HEAD"
51 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:53:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
54 | return (response as? HTTPURLResponse)?.statusCode == 200
55 | } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:54:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
54 | return (response as? HTTPURLResponse)?.statusCode == 200
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 | } catch {
56 | return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:23: error: cannot find 'URLRequest' in scope
62 | /// - completion: A closure that is called with the result of the request.
63 | public func isReachable(completion: @escaping (Bool) -> Void) {
64 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:66:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 | var request = URLRequest(url: self)
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
68 | }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:67:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
68 | }
69 | .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 | // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - Returns: The disposition and optional credential that the session should use.
26 | public func urlSession(
27 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | public func urlSession(
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:49:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | ///
48 | /// The declarations in this scope provide focused utilities while preserving the type’s standard behavior.
49 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
50 | /// A URLSession that ignores SSL certificate errors.
51 | public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 | return (.performDefaultHandling, nil)
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
35 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | return (.useCredential, cred)
39 | default:
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[121/221] Compiling SwiftExtras String+fuzzyMatches.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:26:25: error: cannot find 'DispatchSemaphore' in scope
24 | operation: @escaping @Sendable () async throws -> Success
25 | ) {
26 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
27 |
28 | _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:49:23: error: cannot find 'URLRequest' in scope
47 | /// - Returns: A Boolean value indicating whether the URL is reachable.
48 | public func isReachable() async -> Bool {
49 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
50 | request.httpMethod = "HEAD"
51 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:53:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
54 | return (response as? HTTPURLResponse)?.statusCode == 200
55 | } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:54:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
54 | return (response as? HTTPURLResponse)?.statusCode == 200
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 | } catch {
56 | return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:23: error: cannot find 'URLRequest' in scope
62 | /// - completion: A closure that is called with the result of the request.
63 | public func isReachable(completion: @escaping (Bool) -> Void) {
64 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:66:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 | var request = URLRequest(url: self)
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
68 | }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:67:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
68 | }
69 | .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 | // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - Returns: The disposition and optional credential that the session should use.
26 | public func urlSession(
27 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | public func urlSession(
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:49:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | ///
48 | /// The declarations in this scope provide focused utilities while preserving the type’s standard behavior.
49 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
50 | /// A URLSession that ignores SSL certificate errors.
51 | public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 | return (.performDefaultHandling, nil)
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
35 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | return (.useCredential, cred)
39 | default:
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[122/221] Compiling SwiftExtras String+hashed.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:26:25: error: cannot find 'DispatchSemaphore' in scope
24 | operation: @escaping @Sendable () async throws -> Success
25 | ) {
26 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
27 |
28 | _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:49:23: error: cannot find 'URLRequest' in scope
47 | /// - Returns: A Boolean value indicating whether the URL is reachable.
48 | public func isReachable() async -> Bool {
49 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
50 | request.httpMethod = "HEAD"
51 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:53:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
54 | return (response as? HTTPURLResponse)?.statusCode == 200
55 | } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:54:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
54 | return (response as? HTTPURLResponse)?.statusCode == 200
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 | } catch {
56 | return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:23: error: cannot find 'URLRequest' in scope
62 | /// - completion: A closure that is called with the result of the request.
63 | public func isReachable(completion: @escaping (Bool) -> Void) {
64 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:66:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 | var request = URLRequest(url: self)
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
68 | }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:67:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
68 | }
69 | .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 | // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - Returns: The disposition and optional credential that the session should use.
26 | public func urlSession(
27 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | public func urlSession(
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:49:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | ///
48 | /// The declarations in this scope provide focused utilities while preserving the type’s standard behavior.
49 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
50 | /// A URLSession that ignores SSL certificate errors.
51 | public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 | return (.performDefaultHandling, nil)
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
35 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | return (.useCredential, cred)
39 | default:
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[123/221] Compiling SwiftExtras String+slice.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:26:25: error: cannot find 'DispatchSemaphore' in scope
24 | operation: @escaping @Sendable () async throws -> Success
25 | ) {
26 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
27 |
28 | _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:49:23: error: cannot find 'URLRequest' in scope
47 | /// - Returns: A Boolean value indicating whether the URL is reachable.
48 | public func isReachable() async -> Bool {
49 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
50 | request.httpMethod = "HEAD"
51 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:53:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
54 | return (response as? HTTPURLResponse)?.statusCode == 200
55 | } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:54:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
54 | return (response as? HTTPURLResponse)?.statusCode == 200
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 | } catch {
56 | return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:23: error: cannot find 'URLRequest' in scope
62 | /// - completion: A closure that is called with the result of the request.
63 | public func isReachable(completion: @escaping (Bool) -> Void) {
64 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:66:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 | var request = URLRequest(url: self)
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
68 | }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:67:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
68 | }
69 | .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 | // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - Returns: The disposition and optional credential that the session should use.
26 | public func urlSession(
27 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | public func urlSession(
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:49:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | ///
48 | /// The declarations in this scope provide focused utilities while preserving the type’s standard behavior.
49 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
50 | /// A URLSession that ignores SSL certificate errors.
51 | public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 | return (.performDefaultHandling, nil)
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
35 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | return (.useCredential, cred)
39 | default:
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[124/221] Compiling SwiftExtras String+slugified.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:26:25: error: cannot find 'DispatchSemaphore' in scope
24 | operation: @escaping @Sendable () async throws -> Success
25 | ) {
26 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
27 |
28 | _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:49:23: error: cannot find 'URLRequest' in scope
47 | /// - Returns: A Boolean value indicating whether the URL is reachable.
48 | public func isReachable() async -> Bool {
49 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
50 | request.httpMethod = "HEAD"
51 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:53:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
54 | return (response as? HTTPURLResponse)?.statusCode == 200
55 | } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:54:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
54 | return (response as? HTTPURLResponse)?.statusCode == 200
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 | } catch {
56 | return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:23: error: cannot find 'URLRequest' in scope
62 | /// - completion: A closure that is called with the result of the request.
63 | public func isReachable(completion: @escaping (Bool) -> Void) {
64 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:66:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 | var request = URLRequest(url: self)
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
68 | }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:67:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
68 | }
69 | .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 | // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - Returns: The disposition and optional credential that the session should use.
26 | public func urlSession(
27 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | public func urlSession(
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:49:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | ///
48 | /// The declarations in this scope provide focused utilities while preserving the type’s standard behavior.
49 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
50 | /// A URLSession that ignores SSL certificate errors.
51 | public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 | return (.performDefaultHandling, nil)
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
35 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | return (.useCredential, cred)
39 | default:
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[125/221] Compiling SwiftExtras String+subscript.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:26:25: error: cannot find 'DispatchSemaphore' in scope
24 | operation: @escaping @Sendable () async throws -> Success
25 | ) {
26 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
27 |
28 | _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:49:23: error: cannot find 'URLRequest' in scope
47 | /// - Returns: A Boolean value indicating whether the URL is reachable.
48 | public func isReachable() async -> Bool {
49 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
50 | request.httpMethod = "HEAD"
51 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:53:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
54 | return (response as? HTTPURLResponse)?.statusCode == 200
55 | } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:54:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
54 | return (response as? HTTPURLResponse)?.statusCode == 200
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 | } catch {
56 | return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:23: error: cannot find 'URLRequest' in scope
62 | /// - completion: A closure that is called with the result of the request.
63 | public func isReachable(completion: @escaping (Bool) -> Void) {
64 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:66:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 | var request = URLRequest(url: self)
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
68 | }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:67:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
68 | }
69 | .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 | // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - Returns: The disposition and optional credential that the session should use.
26 | public func urlSession(
27 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | public func urlSession(
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:49:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | ///
48 | /// The declarations in this scope provide focused utilities while preserving the type’s standard behavior.
49 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
50 | /// A URLSession that ignores SSL certificate errors.
51 | public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 | return (.performDefaultHandling, nil)
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
35 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | return (.useCredential, cred)
39 | default:
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[126/221] Compiling SwiftExtras String+trimmed.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:26:25: error: cannot find 'DispatchSemaphore' in scope
24 | operation: @escaping @Sendable () async throws -> Success
25 | ) {
26 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
27 |
28 | _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:49:23: error: cannot find 'URLRequest' in scope
47 | /// - Returns: A Boolean value indicating whether the URL is reachable.
48 | public func isReachable() async -> Bool {
49 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
50 | request.httpMethod = "HEAD"
51 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:53:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
54 | return (response as? HTTPURLResponse)?.statusCode == 200
55 | } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:54:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
54 | return (response as? HTTPURLResponse)?.statusCode == 200
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 | } catch {
56 | return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:23: error: cannot find 'URLRequest' in scope
62 | /// - completion: A closure that is called with the result of the request.
63 | public func isReachable(completion: @escaping (Bool) -> Void) {
64 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:66:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 | var request = URLRequest(url: self)
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
68 | }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:67:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
68 | }
69 | .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 | // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - Returns: The disposition and optional credential that the session should use.
26 | public func urlSession(
27 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | public func urlSession(
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:49:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | ///
48 | /// The declarations in this scope provide focused utilities while preserving the type’s standard behavior.
49 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
50 | /// A URLSession that ignores SSL certificate errors.
51 | public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 | return (.performDefaultHandling, nil)
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
35 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | return (.useCredential, cred)
39 | default:
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[127/221] Compiling SwiftExtras String+url.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:26:25: error: cannot find 'DispatchSemaphore' in scope
24 | operation: @escaping @Sendable () async throws -> Success
25 | ) {
26 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
27 |
28 | _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:49:23: error: cannot find 'URLRequest' in scope
47 | /// - Returns: A Boolean value indicating whether the URL is reachable.
48 | public func isReachable() async -> Bool {
49 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
50 | request.httpMethod = "HEAD"
51 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:53:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
54 | return (response as? HTTPURLResponse)?.statusCode == 200
55 | } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:54:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
54 | return (response as? HTTPURLResponse)?.statusCode == 200
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 | } catch {
56 | return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:23: error: cannot find 'URLRequest' in scope
62 | /// - completion: A closure that is called with the result of the request.
63 | public func isReachable(completion: @escaping (Bool) -> Void) {
64 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:66:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 | var request = URLRequest(url: self)
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
68 | }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:67:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
68 | }
69 | .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 | // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - Returns: The disposition and optional credential that the session should use.
26 | public func urlSession(
27 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | public func urlSession(
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:49:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | ///
48 | /// The declarations in this scope provide focused utilities while preserving the type’s standard behavior.
49 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
50 | /// A URLSession that ignores SSL certificate errors.
51 | public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 | return (.performDefaultHandling, nil)
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
35 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | return (.useCredential, cred)
39 | default:
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[128/221] Compiling SwiftExtras StringProtocol+.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:26:25: error: cannot find 'DispatchSemaphore' in scope
24 | operation: @escaping @Sendable () async throws -> Success
25 | ) {
26 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
27 |
28 | _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:49:23: error: cannot find 'URLRequest' in scope
47 | /// - Returns: A Boolean value indicating whether the URL is reachable.
48 | public func isReachable() async -> Bool {
49 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
50 | request.httpMethod = "HEAD"
51 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:53:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
54 | return (response as? HTTPURLResponse)?.statusCode == 200
55 | } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:54:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
54 | return (response as? HTTPURLResponse)?.statusCode == 200
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 | } catch {
56 | return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:23: error: cannot find 'URLRequest' in scope
62 | /// - completion: A closure that is called with the result of the request.
63 | public func isReachable(completion: @escaping (Bool) -> Void) {
64 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:66:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 | var request = URLRequest(url: self)
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
68 | }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:67:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
68 | }
69 | .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 | // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - Returns: The disposition and optional credential that the session should use.
26 | public func urlSession(
27 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | public func urlSession(
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:49:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | ///
48 | /// The declarations in this scope provide focused utilities while preserving the type’s standard behavior.
49 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
50 | /// A URLSession that ignores SSL certificate errors.
51 | public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 | return (.performDefaultHandling, nil)
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
35 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | return (.useCredential, cred)
39 | default:
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[129/221] Compiling SwiftExtras Task+.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:26:25: error: cannot find 'DispatchSemaphore' in scope
24 | operation: @escaping @Sendable () async throws -> Success
25 | ) {
26 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
27 |
28 | _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:49:23: error: cannot find 'URLRequest' in scope
47 | /// - Returns: A Boolean value indicating whether the URL is reachable.
48 | public func isReachable() async -> Bool {
49 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
50 | request.httpMethod = "HEAD"
51 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:53:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
54 | return (response as? HTTPURLResponse)?.statusCode == 200
55 | } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:54:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
54 | return (response as? HTTPURLResponse)?.statusCode == 200
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 | } catch {
56 | return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:23: error: cannot find 'URLRequest' in scope
62 | /// - completion: A closure that is called with the result of the request.
63 | public func isReachable(completion: @escaping (Bool) -> Void) {
64 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:66:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 | var request = URLRequest(url: self)
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
68 | }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:67:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
68 | }
69 | .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 | // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - Returns: The disposition and optional credential that the session should use.
26 | public func urlSession(
27 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | public func urlSession(
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:49:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | ///
48 | /// The declarations in this scope provide focused utilities while preserving the type’s standard behavior.
49 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
50 | /// A URLSession that ignores SSL certificate errors.
51 | public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 | return (.performDefaultHandling, nil)
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
35 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | return (.useCredential, cred)
39 | default:
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[130/221] Compiling SwiftExtras Text+Gradient.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:26:25: error: cannot find 'DispatchSemaphore' in scope
24 | operation: @escaping @Sendable () async throws -> Success
25 | ) {
26 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
27 |
28 | _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:49:23: error: cannot find 'URLRequest' in scope
47 | /// - Returns: A Boolean value indicating whether the URL is reachable.
48 | public func isReachable() async -> Bool {
49 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
50 | request.httpMethod = "HEAD"
51 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:53:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
54 | return (response as? HTTPURLResponse)?.statusCode == 200
55 | } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:54:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
54 | return (response as? HTTPURLResponse)?.statusCode == 200
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 | } catch {
56 | return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:23: error: cannot find 'URLRequest' in scope
62 | /// - completion: A closure that is called with the result of the request.
63 | public func isReachable(completion: @escaping (Bool) -> Void) {
64 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:66:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 | var request = URLRequest(url: self)
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
68 | }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:67:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
68 | }
69 | .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 | // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - Returns: The disposition and optional credential that the session should use.
26 | public func urlSession(
27 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | public func urlSession(
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:49:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | ///
48 | /// The declarations in this scope provide focused utilities while preserving the type’s standard behavior.
49 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
50 | /// A URLSession that ignores SSL certificate errors.
51 | public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 | return (.performDefaultHandling, nil)
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
35 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | return (.useCredential, cred)
39 | default:
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[131/221] Compiling SwiftExtras TimeInterval+.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:26:25: error: cannot find 'DispatchSemaphore' in scope
24 | operation: @escaping @Sendable () async throws -> Success
25 | ) {
26 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
27 |
28 | _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:49:23: error: cannot find 'URLRequest' in scope
47 | /// - Returns: A Boolean value indicating whether the URL is reachable.
48 | public func isReachable() async -> Bool {
49 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
50 | request.httpMethod = "HEAD"
51 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:53:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
54 | return (response as? HTTPURLResponse)?.statusCode == 200
55 | } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:54:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
54 | return (response as? HTTPURLResponse)?.statusCode == 200
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 | } catch {
56 | return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:23: error: cannot find 'URLRequest' in scope
62 | /// - completion: A closure that is called with the result of the request.
63 | public func isReachable(completion: @escaping (Bool) -> Void) {
64 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:66:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 | var request = URLRequest(url: self)
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
68 | }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:67:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
68 | }
69 | .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 | // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - Returns: The disposition and optional credential that the session should use.
26 | public func urlSession(
27 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | public func urlSession(
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:49:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | ///
48 | /// The declarations in this scope provide focused utilities while preserving the type’s standard behavior.
49 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
50 | /// A URLSession that ignores SSL certificate errors.
51 | public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 | return (.performDefaultHandling, nil)
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
35 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | return (.useCredential, cred)
39 | default:
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[132/221] Compiling SwiftExtras UIDevice+Utilities.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:26:25: error: cannot find 'DispatchSemaphore' in scope
24 | operation: @escaping @Sendable () async throws -> Success
25 | ) {
26 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
27 |
28 | _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:49:23: error: cannot find 'URLRequest' in scope
47 | /// - Returns: A Boolean value indicating whether the URL is reachable.
48 | public func isReachable() async -> Bool {
49 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
50 | request.httpMethod = "HEAD"
51 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:53:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
54 | return (response as? HTTPURLResponse)?.statusCode == 200
55 | } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:54:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
54 | return (response as? HTTPURLResponse)?.statusCode == 200
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 | } catch {
56 | return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:23: error: cannot find 'URLRequest' in scope
62 | /// - completion: A closure that is called with the result of the request.
63 | public func isReachable(completion: @escaping (Bool) -> Void) {
64 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:66:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 | var request = URLRequest(url: self)
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
68 | }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:67:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
68 | }
69 | .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 | // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - Returns: The disposition and optional credential that the session should use.
26 | public func urlSession(
27 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | public func urlSession(
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:49:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | ///
48 | /// The declarations in this scope provide focused utilities while preserving the type’s standard behavior.
49 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
50 | /// A URLSession that ignores SSL certificate errors.
51 | public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 | return (.performDefaultHandling, nil)
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
35 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | return (.useCredential, cred)
39 | default:
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[133/221] Compiling SwiftExtras URL+.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:26:25: error: cannot find 'DispatchSemaphore' in scope
24 | operation: @escaping @Sendable () async throws -> Success
25 | ) {
26 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
27 |
28 | _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:49:23: error: cannot find 'URLRequest' in scope
47 | /// - Returns: A Boolean value indicating whether the URL is reachable.
48 | public func isReachable() async -> Bool {
49 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
50 | request.httpMethod = "HEAD"
51 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:53:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
54 | return (response as? HTTPURLResponse)?.statusCode == 200
55 | } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:54:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
54 | return (response as? HTTPURLResponse)?.statusCode == 200
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 | } catch {
56 | return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:23: error: cannot find 'URLRequest' in scope
62 | /// - completion: A closure that is called with the result of the request.
63 | public func isReachable(completion: @escaping (Bool) -> Void) {
64 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:66:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 | var request = URLRequest(url: self)
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
68 | }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:67:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
68 | }
69 | .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 | // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - Returns: The disposition and optional credential that the session should use.
26 | public func urlSession(
27 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | public func urlSession(
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:49:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | ///
48 | /// The declarations in this scope provide focused utilities while preserving the type’s standard behavior.
49 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
50 | /// A URLSession that ignores SSL certificate errors.
51 | public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 | return (.performDefaultHandling, nil)
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
35 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | return (.useCredential, cred)
39 | default:
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[134/221] Compiling SwiftExtras URLSession.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:26:25: error: cannot find 'DispatchSemaphore' in scope
24 | operation: @escaping @Sendable () async throws -> Success
25 | ) {
26 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
27 |
28 | _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:49:23: error: cannot find 'URLRequest' in scope
47 | /// - Returns: A Boolean value indicating whether the URL is reachable.
48 | public func isReachable() async -> Bool {
49 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
50 | request.httpMethod = "HEAD"
51 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:53:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
54 | return (response as? HTTPURLResponse)?.statusCode == 200
55 | } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:54:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
54 | return (response as? HTTPURLResponse)?.statusCode == 200
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 | } catch {
56 | return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:23: error: cannot find 'URLRequest' in scope
62 | /// - completion: A closure that is called with the result of the request.
63 | public func isReachable(completion: @escaping (Bool) -> Void) {
64 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:66:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 | var request = URLRequest(url: self)
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
68 | }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:67:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
68 | }
69 | .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 | // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - Returns: The disposition and optional credential that the session should use.
26 | public func urlSession(
27 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | public func urlSession(
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:49:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | ///
48 | /// The declarations in this scope provide focused utilities while preserving the type’s standard behavior.
49 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
50 | /// A URLSession that ignores SSL certificate errors.
51 | public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 | return (.performDefaultHandling, nil)
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
35 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | return (.useCredential, cred)
39 | default:
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[135/221] Compiling SwiftExtras View+subtitle.swift
[136/221] Compiling SwiftExtras GravatarAvatarImage.swift
[137/221] Compiling SwiftExtras kMeansCluster.swift
[138/221] Compiling SwiftExtras Flow.swift
[139/221] Compiling SwiftExtras StickySection.swift
[140/221] Compiling SwiftExtras WStack.swift
[141/221] Compiling SwiftExtras BorderBeamEffect.swift
[142/221] Compiling SwiftExtras Button+longPress.swift
[143/221] Compiling SwiftExtras CaptureScrollingOffset.swift
[144/221] Compiling SwiftExtras CustomBadge.swift
[145/221] Compiling SwiftExtras FloatingSafeAreaBar.swift
[146/221] Compiling SwiftExtras IslandToast.swift
[147/221] Compiling SwiftExtras KeyboardDismissModifier.swift
[148/221] Compiling SwiftExtras KeyboardDoneToolbar.swift
[149/221] Compiling SwiftExtras PulsatingEffect.swift
[150/221] Compiling SwiftExtras ShakeEffect.swift
[151/221] Compiling SwiftExtras Shimmer.swift
[152/221] Compiling SwiftExtras StretchyHeaderViewModifier.swift
[153/221] Compiling SwiftExtras TextFieldActions.swift
[154/221] Compiling SwiftExtras TextFieldWithAxisActionHelper.swift
[155/221] Compiling SwiftExtras Toast.swift
[156/221] Compiling SwiftExtras BackgroundRemover.swift
[157/221] Compiling SwiftExtras SensoryFeedback.swift
[158/221] Compiling SwiftExtras AppInfo.swift
[159/221] Compiling SwiftExtras Device.swift
[160/221] Compiling SwiftExtras Binding+onChange.swift
[161/221] Compiling SwiftExtras Binding+optional.swift
[162/221] Compiling SwiftExtras CGFloat+.swift
[163/221] Compiling SwiftExtras CGSize+device.swift
[164/221] Compiling SwiftExtras Collection+.swift
[165/221] Compiling SwiftExtras Collection+safeIndex.swift
[166/221] Compiling SwiftExtras Color+Codable.swift
[167/221] Compiling SwiftExtras Color+Identifiable.swift
[168/221] Compiling SwiftExtras Color+colorBlind.swift
[169/221] Compiling SwiftExtras Color+components.swift
[170/221] Compiling SwiftExtras Color+default.swift
[171/221] Compiling SwiftExtras Color+dynamicColor.swift
[172/221] Compiling SwiftExtras Color+init.swift
[173/221] Compiling SwiftExtras Color+random.swift
[174/221] Compiling SwiftExtras PlatformColor+.swift
[175/221] Compiling SwiftExtras Data.swift
[176/221] Compiling SwiftExtras Date+.swift
[177/221] Compiling SwiftExtras SEAcknowledgement.swift
[178/221] Compiling SwiftExtras SEChangeLogEntry.swift
[179/221] Compiling SwiftExtras SocialIcons.swift
[180/221] Compiling SwiftExtras UbiquitousStorage.swift
[181/221] Compiling SwiftExtras BorderedToggleStyle.swift
[182/221] Compiling SwiftExtras ColoredButtonStyle.swift
[183/221] Compiling SwiftExtras GrayButtonStyle.swift
[184/221] Compiling SwiftExtras ListButtonStyle.swift
[185/221] Compiling SwiftExtras PlainBorderedToggleStyle.swift
[186/221] Compiling SwiftExtras ToggleButtonStyle.swift
[187/221] Compiling SwiftExtras SwiftExtras.swift
[188/221] Compiling SwiftExtras AsyncTask.swift
[189/221] Compiling SwiftExtras AsyncView.swift
[190/221] Compiling SwiftExtras CardView.swift
[191/221] Compiling SwiftExtras CarouselView.swift
[192/221] Compiling SwiftExtras CloseButton.swift
[193/221] Compiling SwiftExtras Compat.swift
[194/221] Compiling SwiftExtras ConfettiView.swift
[195/221] Compiling SwiftExtras ConfirmationButton.swift
[196/221] Compiling SwiftExtras CopyableLabeledContent.swift
[197/221] Compiling SwiftExtras NSPasteboard+string.swift
[198/221] Compiling SwiftExtras PlatformTypes.swift
[199/221] Compiling SwiftExtras PlatformViewRepresentable.swift
[200/221] Compiling SwiftExtras openURL.swift
[201/221] Compiling SwiftExtras RegularExpressionOperator.swift
[202/221] Compiling SwiftExtras optionalBinding.swift
[203/221] Compiling SwiftExtras PictureInPicture.swift
[204/221] Compiling SwiftExtras PictureInPictureController.swift
[205/221] Compiling SwiftExtras PictureInPictureLayerView.swift
[206/221] Compiling SwiftExtras PictureInPictureRenderer.swift
[207/221] Compiling SwiftExtras View+PictureInPicture.swift
[208/221] Compiling SwiftExtras AutoEquatable.swift
[209/221] Compiling SwiftExtras MailView.swift
[210/221] Compiling SwiftExtras SFSafari.swift
[211/221] Compiling SwiftExtras WebView.swift
[212/221] Compiling SwiftExtras HexShape.swift
[213/221] Compiling SwiftExtras AnyCodable.swift
[214/221] Compiling SwiftExtras DeviceInfo.swift
[215/221] Compiling SwiftExtras Dynamic.swift
[216/221] Compiling SwiftExtras DynamicJSON.swift
[217/221] Compiling SwiftExtras IslandToastCard.swift
BUILD FAILURE 6.2 wasm