Build Information
Failed to build SwiftExtras, reference main (ee47fa), with Swift 6.3 for Wasm on 14 Nov 2026 01:43:53 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344849-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1Build Log
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 | } catch {
56 | return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:23: error: cannot find 'URLRequest' in scope
62 | /// - completion: A closure that is called with the result of the request.
63 | public func isReachable(completion: @escaping (Bool) -> Void) {
64 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:66:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 | var request = URLRequest(url: self)
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
68 | }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:67:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
68 | }
69 | .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 | // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - Returns: The disposition and optional credential that the session should use.
26 | public func urlSession(
27 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | public func urlSession(
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:49:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | ///
48 | /// The declarations in this scope provide focused utilities while preserving the type’s standard behavior.
49 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
50 | /// A URLSession that ignores SSL certificate errors.
51 | public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 | return (.performDefaultHandling, nil)
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
35 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:38:22: error: cannot infer contextual base in reference to member 'useCredential'
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
38 | return (.useCredential, cred)
| `- error: cannot infer contextual base in reference to member 'useCredential'
39 | default:
40 | return (.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:40:22: error: cannot infer contextual base in reference to member 'performDefaultHandling'
38 | return (.useCredential, cred)
39 | default:
40 | return (.performDefaultHandling, nil)
| `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
41 | }
42 | #endif
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[121/223] Compiling SwiftExtras String+error.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:26:25: error: cannot find 'DispatchSemaphore' in scope
24 | operation: @escaping @Sendable () async throws -> Success
25 | ) {
26 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
27 |
28 | _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:49:23: error: cannot find 'URLRequest' in scope
47 | /// - Returns: A Boolean value indicating whether the URL is reachable.
48 | public func isReachable() async -> Bool {
49 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
50 | request.httpMethod = "HEAD"
51 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:53:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
54 | return (response as? HTTPURLResponse)?.statusCode == 200
55 | } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:54:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
54 | return (response as? HTTPURLResponse)?.statusCode == 200
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 | } catch {
56 | return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:23: error: cannot find 'URLRequest' in scope
62 | /// - completion: A closure that is called with the result of the request.
63 | public func isReachable(completion: @escaping (Bool) -> Void) {
64 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:66:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 | var request = URLRequest(url: self)
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
68 | }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:67:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
68 | }
69 | .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 | // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - Returns: The disposition and optional credential that the session should use.
26 | public func urlSession(
27 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | public func urlSession(
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:49:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | ///
48 | /// The declarations in this scope provide focused utilities while preserving the type’s standard behavior.
49 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
50 | /// A URLSession that ignores SSL certificate errors.
51 | public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 | return (.performDefaultHandling, nil)
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
35 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:38:22: error: cannot infer contextual base in reference to member 'useCredential'
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
38 | return (.useCredential, cred)
| `- error: cannot infer contextual base in reference to member 'useCredential'
39 | default:
40 | return (.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:40:22: error: cannot infer contextual base in reference to member 'performDefaultHandling'
38 | return (.useCredential, cred)
39 | default:
40 | return (.performDefaultHandling, nil)
| `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
41 | }
42 | #endif
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[122/223] Compiling SwiftExtras String+fuzzyMatches.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:26:25: error: cannot find 'DispatchSemaphore' in scope
24 | operation: @escaping @Sendable () async throws -> Success
25 | ) {
26 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
27 |
28 | _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:49:23: error: cannot find 'URLRequest' in scope
47 | /// - Returns: A Boolean value indicating whether the URL is reachable.
48 | public func isReachable() async -> Bool {
49 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
50 | request.httpMethod = "HEAD"
51 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:53:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
54 | return (response as? HTTPURLResponse)?.statusCode == 200
55 | } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:54:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
54 | return (response as? HTTPURLResponse)?.statusCode == 200
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 | } catch {
56 | return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:23: error: cannot find 'URLRequest' in scope
62 | /// - completion: A closure that is called with the result of the request.
63 | public func isReachable(completion: @escaping (Bool) -> Void) {
64 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:66:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 | var request = URLRequest(url: self)
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
68 | }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:67:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
68 | }
69 | .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 | // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - Returns: The disposition and optional credential that the session should use.
26 | public func urlSession(
27 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | public func urlSession(
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:49:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | ///
48 | /// The declarations in this scope provide focused utilities while preserving the type’s standard behavior.
49 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
50 | /// A URLSession that ignores SSL certificate errors.
51 | public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 | return (.performDefaultHandling, nil)
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
35 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:38:22: error: cannot infer contextual base in reference to member 'useCredential'
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
38 | return (.useCredential, cred)
| `- error: cannot infer contextual base in reference to member 'useCredential'
39 | default:
40 | return (.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:40:22: error: cannot infer contextual base in reference to member 'performDefaultHandling'
38 | return (.useCredential, cred)
39 | default:
40 | return (.performDefaultHandling, nil)
| `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
41 | }
42 | #endif
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[123/223] Compiling SwiftExtras String+hashed.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:26:25: error: cannot find 'DispatchSemaphore' in scope
24 | operation: @escaping @Sendable () async throws -> Success
25 | ) {
26 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
27 |
28 | _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:49:23: error: cannot find 'URLRequest' in scope
47 | /// - Returns: A Boolean value indicating whether the URL is reachable.
48 | public func isReachable() async -> Bool {
49 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
50 | request.httpMethod = "HEAD"
51 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:53:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
54 | return (response as? HTTPURLResponse)?.statusCode == 200
55 | } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:54:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
54 | return (response as? HTTPURLResponse)?.statusCode == 200
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 | } catch {
56 | return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:23: error: cannot find 'URLRequest' in scope
62 | /// - completion: A closure that is called with the result of the request.
63 | public func isReachable(completion: @escaping (Bool) -> Void) {
64 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:66:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 | var request = URLRequest(url: self)
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
68 | }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:67:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
68 | }
69 | .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 | // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - Returns: The disposition and optional credential that the session should use.
26 | public func urlSession(
27 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | public func urlSession(
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:49:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | ///
48 | /// The declarations in this scope provide focused utilities while preserving the type’s standard behavior.
49 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
50 | /// A URLSession that ignores SSL certificate errors.
51 | public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 | return (.performDefaultHandling, nil)
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
35 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:38:22: error: cannot infer contextual base in reference to member 'useCredential'
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
38 | return (.useCredential, cred)
| `- error: cannot infer contextual base in reference to member 'useCredential'
39 | default:
40 | return (.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:40:22: error: cannot infer contextual base in reference to member 'performDefaultHandling'
38 | return (.useCredential, cred)
39 | default:
40 | return (.performDefaultHandling, nil)
| `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
41 | }
42 | #endif
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[124/223] Compiling SwiftExtras String+slice.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:26:25: error: cannot find 'DispatchSemaphore' in scope
24 | operation: @escaping @Sendable () async throws -> Success
25 | ) {
26 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
27 |
28 | _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:49:23: error: cannot find 'URLRequest' in scope
47 | /// - Returns: A Boolean value indicating whether the URL is reachable.
48 | public func isReachable() async -> Bool {
49 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
50 | request.httpMethod = "HEAD"
51 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:53:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
54 | return (response as? HTTPURLResponse)?.statusCode == 200
55 | } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:54:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
54 | return (response as? HTTPURLResponse)?.statusCode == 200
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 | } catch {
56 | return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:23: error: cannot find 'URLRequest' in scope
62 | /// - completion: A closure that is called with the result of the request.
63 | public func isReachable(completion: @escaping (Bool) -> Void) {
64 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:66:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 | var request = URLRequest(url: self)
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
68 | }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:67:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
68 | }
69 | .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 | // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - Returns: The disposition and optional credential that the session should use.
26 | public func urlSession(
27 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | public func urlSession(
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:49:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | ///
48 | /// The declarations in this scope provide focused utilities while preserving the type’s standard behavior.
49 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
50 | /// A URLSession that ignores SSL certificate errors.
51 | public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 | return (.performDefaultHandling, nil)
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
35 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:38:22: error: cannot infer contextual base in reference to member 'useCredential'
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
38 | return (.useCredential, cred)
| `- error: cannot infer contextual base in reference to member 'useCredential'
39 | default:
40 | return (.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:40:22: error: cannot infer contextual base in reference to member 'performDefaultHandling'
38 | return (.useCredential, cred)
39 | default:
40 | return (.performDefaultHandling, nil)
| `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
41 | }
42 | #endif
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[125/223] Compiling SwiftExtras String+slugified.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:26:25: error: cannot find 'DispatchSemaphore' in scope
24 | operation: @escaping @Sendable () async throws -> Success
25 | ) {
26 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
27 |
28 | _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:49:23: error: cannot find 'URLRequest' in scope
47 | /// - Returns: A Boolean value indicating whether the URL is reachable.
48 | public func isReachable() async -> Bool {
49 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
50 | request.httpMethod = "HEAD"
51 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:53:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
54 | return (response as? HTTPURLResponse)?.statusCode == 200
55 | } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:54:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
54 | return (response as? HTTPURLResponse)?.statusCode == 200
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 | } catch {
56 | return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:23: error: cannot find 'URLRequest' in scope
62 | /// - completion: A closure that is called with the result of the request.
63 | public func isReachable(completion: @escaping (Bool) -> Void) {
64 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:66:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 | var request = URLRequest(url: self)
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
68 | }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:67:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
68 | }
69 | .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 | // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - Returns: The disposition and optional credential that the session should use.
26 | public func urlSession(
27 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | public func urlSession(
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:49:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | ///
48 | /// The declarations in this scope provide focused utilities while preserving the type’s standard behavior.
49 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
50 | /// A URLSession that ignores SSL certificate errors.
51 | public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 | return (.performDefaultHandling, nil)
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
35 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:38:22: error: cannot infer contextual base in reference to member 'useCredential'
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
38 | return (.useCredential, cred)
| `- error: cannot infer contextual base in reference to member 'useCredential'
39 | default:
40 | return (.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:40:22: error: cannot infer contextual base in reference to member 'performDefaultHandling'
38 | return (.useCredential, cred)
39 | default:
40 | return (.performDefaultHandling, nil)
| `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
41 | }
42 | #endif
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[126/223] Compiling SwiftExtras String+subscript.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:26:25: error: cannot find 'DispatchSemaphore' in scope
24 | operation: @escaping @Sendable () async throws -> Success
25 | ) {
26 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
27 |
28 | _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:49:23: error: cannot find 'URLRequest' in scope
47 | /// - Returns: A Boolean value indicating whether the URL is reachable.
48 | public func isReachable() async -> Bool {
49 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
50 | request.httpMethod = "HEAD"
51 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:53:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
54 | return (response as? HTTPURLResponse)?.statusCode == 200
55 | } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:54:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
54 | return (response as? HTTPURLResponse)?.statusCode == 200
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 | } catch {
56 | return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:23: error: cannot find 'URLRequest' in scope
62 | /// - completion: A closure that is called with the result of the request.
63 | public func isReachable(completion: @escaping (Bool) -> Void) {
64 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:66:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 | var request = URLRequest(url: self)
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
68 | }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:67:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
68 | }
69 | .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 | // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - Returns: The disposition and optional credential that the session should use.
26 | public func urlSession(
27 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | public func urlSession(
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:49:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | ///
48 | /// The declarations in this scope provide focused utilities while preserving the type’s standard behavior.
49 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
50 | /// A URLSession that ignores SSL certificate errors.
51 | public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 | return (.performDefaultHandling, nil)
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
35 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:38:22: error: cannot infer contextual base in reference to member 'useCredential'
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
38 | return (.useCredential, cred)
| `- error: cannot infer contextual base in reference to member 'useCredential'
39 | default:
40 | return (.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:40:22: error: cannot infer contextual base in reference to member 'performDefaultHandling'
38 | return (.useCredential, cred)
39 | default:
40 | return (.performDefaultHandling, nil)
| `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
41 | }
42 | #endif
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[127/223] Compiling SwiftExtras String+trimmed.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:26:25: error: cannot find 'DispatchSemaphore' in scope
24 | operation: @escaping @Sendable () async throws -> Success
25 | ) {
26 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
27 |
28 | _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:49:23: error: cannot find 'URLRequest' in scope
47 | /// - Returns: A Boolean value indicating whether the URL is reachable.
48 | public func isReachable() async -> Bool {
49 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
50 | request.httpMethod = "HEAD"
51 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:53:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
54 | return (response as? HTTPURLResponse)?.statusCode == 200
55 | } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:54:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
54 | return (response as? HTTPURLResponse)?.statusCode == 200
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 | } catch {
56 | return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:23: error: cannot find 'URLRequest' in scope
62 | /// - completion: A closure that is called with the result of the request.
63 | public func isReachable(completion: @escaping (Bool) -> Void) {
64 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:66:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 | var request = URLRequest(url: self)
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
68 | }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:67:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
68 | }
69 | .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 | // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - Returns: The disposition and optional credential that the session should use.
26 | public func urlSession(
27 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | public func urlSession(
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:49:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | ///
48 | /// The declarations in this scope provide focused utilities while preserving the type’s standard behavior.
49 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
50 | /// A URLSession that ignores SSL certificate errors.
51 | public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 | return (.performDefaultHandling, nil)
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
35 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:38:22: error: cannot infer contextual base in reference to member 'useCredential'
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
38 | return (.useCredential, cred)
| `- error: cannot infer contextual base in reference to member 'useCredential'
39 | default:
40 | return (.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:40:22: error: cannot infer contextual base in reference to member 'performDefaultHandling'
38 | return (.useCredential, cred)
39 | default:
40 | return (.performDefaultHandling, nil)
| `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
41 | }
42 | #endif
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[128/223] Compiling SwiftExtras String+url.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:26:25: error: cannot find 'DispatchSemaphore' in scope
24 | operation: @escaping @Sendable () async throws -> Success
25 | ) {
26 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
27 |
28 | _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:49:23: error: cannot find 'URLRequest' in scope
47 | /// - Returns: A Boolean value indicating whether the URL is reachable.
48 | public func isReachable() async -> Bool {
49 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
50 | request.httpMethod = "HEAD"
51 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:53:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
54 | return (response as? HTTPURLResponse)?.statusCode == 200
55 | } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:54:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
54 | return (response as? HTTPURLResponse)?.statusCode == 200
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 | } catch {
56 | return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:23: error: cannot find 'URLRequest' in scope
62 | /// - completion: A closure that is called with the result of the request.
63 | public func isReachable(completion: @escaping (Bool) -> Void) {
64 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:66:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 | var request = URLRequest(url: self)
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
68 | }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:67:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
68 | }
69 | .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 | // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - Returns: The disposition and optional credential that the session should use.
26 | public func urlSession(
27 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | public func urlSession(
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:49:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | ///
48 | /// The declarations in this scope provide focused utilities while preserving the type’s standard behavior.
49 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
50 | /// A URLSession that ignores SSL certificate errors.
51 | public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 | return (.performDefaultHandling, nil)
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
35 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:38:22: error: cannot infer contextual base in reference to member 'useCredential'
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
38 | return (.useCredential, cred)
| `- error: cannot infer contextual base in reference to member 'useCredential'
39 | default:
40 | return (.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:40:22: error: cannot infer contextual base in reference to member 'performDefaultHandling'
38 | return (.useCredential, cred)
39 | default:
40 | return (.performDefaultHandling, nil)
| `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
41 | }
42 | #endif
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[129/223] Compiling SwiftExtras StringProtocol+.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:26:25: error: cannot find 'DispatchSemaphore' in scope
24 | operation: @escaping @Sendable () async throws -> Success
25 | ) {
26 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
27 |
28 | _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:49:23: error: cannot find 'URLRequest' in scope
47 | /// - Returns: A Boolean value indicating whether the URL is reachable.
48 | public func isReachable() async -> Bool {
49 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
50 | request.httpMethod = "HEAD"
51 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:53:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
54 | return (response as? HTTPURLResponse)?.statusCode == 200
55 | } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:54:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
54 | return (response as? HTTPURLResponse)?.statusCode == 200
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 | } catch {
56 | return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:23: error: cannot find 'URLRequest' in scope
62 | /// - completion: A closure that is called with the result of the request.
63 | public func isReachable(completion: @escaping (Bool) -> Void) {
64 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:66:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 | var request = URLRequest(url: self)
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
68 | }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:67:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
68 | }
69 | .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 | // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - Returns: The disposition and optional credential that the session should use.
26 | public func urlSession(
27 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | public func urlSession(
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:49:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | ///
48 | /// The declarations in this scope provide focused utilities while preserving the type’s standard behavior.
49 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
50 | /// A URLSession that ignores SSL certificate errors.
51 | public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 | return (.performDefaultHandling, nil)
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
35 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:38:22: error: cannot infer contextual base in reference to member 'useCredential'
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
38 | return (.useCredential, cred)
| `- error: cannot infer contextual base in reference to member 'useCredential'
39 | default:
40 | return (.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:40:22: error: cannot infer contextual base in reference to member 'performDefaultHandling'
38 | return (.useCredential, cred)
39 | default:
40 | return (.performDefaultHandling, nil)
| `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
41 | }
42 | #endif
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[130/223] Compiling SwiftExtras Task+.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:26:25: error: cannot find 'DispatchSemaphore' in scope
24 | operation: @escaping @Sendable () async throws -> Success
25 | ) {
26 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
27 |
28 | _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:49:23: error: cannot find 'URLRequest' in scope
47 | /// - Returns: A Boolean value indicating whether the URL is reachable.
48 | public func isReachable() async -> Bool {
49 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
50 | request.httpMethod = "HEAD"
51 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:53:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
54 | return (response as? HTTPURLResponse)?.statusCode == 200
55 | } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:54:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
54 | return (response as? HTTPURLResponse)?.statusCode == 200
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 | } catch {
56 | return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:23: error: cannot find 'URLRequest' in scope
62 | /// - completion: A closure that is called with the result of the request.
63 | public func isReachable(completion: @escaping (Bool) -> Void) {
64 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:66:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 | var request = URLRequest(url: self)
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
68 | }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:67:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
68 | }
69 | .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 | // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - Returns: The disposition and optional credential that the session should use.
26 | public func urlSession(
27 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | public func urlSession(
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:49:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | ///
48 | /// The declarations in this scope provide focused utilities while preserving the type’s standard behavior.
49 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
50 | /// A URLSession that ignores SSL certificate errors.
51 | public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 | return (.performDefaultHandling, nil)
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
35 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:38:22: error: cannot infer contextual base in reference to member 'useCredential'
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
38 | return (.useCredential, cred)
| `- error: cannot infer contextual base in reference to member 'useCredential'
39 | default:
40 | return (.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:40:22: error: cannot infer contextual base in reference to member 'performDefaultHandling'
38 | return (.useCredential, cred)
39 | default:
40 | return (.performDefaultHandling, nil)
| `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
41 | }
42 | #endif
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[131/223] Compiling SwiftExtras Text+Gradient.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:26:25: error: cannot find 'DispatchSemaphore' in scope
24 | operation: @escaping @Sendable () async throws -> Success
25 | ) {
26 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
27 |
28 | _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:49:23: error: cannot find 'URLRequest' in scope
47 | /// - Returns: A Boolean value indicating whether the URL is reachable.
48 | public func isReachable() async -> Bool {
49 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
50 | request.httpMethod = "HEAD"
51 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:53:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
54 | return (response as? HTTPURLResponse)?.statusCode == 200
55 | } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:54:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
54 | return (response as? HTTPURLResponse)?.statusCode == 200
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 | } catch {
56 | return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:23: error: cannot find 'URLRequest' in scope
62 | /// - completion: A closure that is called with the result of the request.
63 | public func isReachable(completion: @escaping (Bool) -> Void) {
64 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:66:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 | var request = URLRequest(url: self)
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
68 | }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:67:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
68 | }
69 | .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 | // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - Returns: The disposition and optional credential that the session should use.
26 | public func urlSession(
27 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | public func urlSession(
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:49:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | ///
48 | /// The declarations in this scope provide focused utilities while preserving the type’s standard behavior.
49 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
50 | /// A URLSession that ignores SSL certificate errors.
51 | public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 | return (.performDefaultHandling, nil)
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
35 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:38:22: error: cannot infer contextual base in reference to member 'useCredential'
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
38 | return (.useCredential, cred)
| `- error: cannot infer contextual base in reference to member 'useCredential'
39 | default:
40 | return (.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:40:22: error: cannot infer contextual base in reference to member 'performDefaultHandling'
38 | return (.useCredential, cred)
39 | default:
40 | return (.performDefaultHandling, nil)
| `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
41 | }
42 | #endif
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[132/223] Compiling SwiftExtras TimeInterval+.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:26:25: error: cannot find 'DispatchSemaphore' in scope
24 | operation: @escaping @Sendable () async throws -> Success
25 | ) {
26 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
27 |
28 | _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:49:23: error: cannot find 'URLRequest' in scope
47 | /// - Returns: A Boolean value indicating whether the URL is reachable.
48 | public func isReachable() async -> Bool {
49 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
50 | request.httpMethod = "HEAD"
51 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:53:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
54 | return (response as? HTTPURLResponse)?.statusCode == 200
55 | } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:54:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
54 | return (response as? HTTPURLResponse)?.statusCode == 200
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 | } catch {
56 | return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:23: error: cannot find 'URLRequest' in scope
62 | /// - completion: A closure that is called with the result of the request.
63 | public func isReachable(completion: @escaping (Bool) -> Void) {
64 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:66:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 | var request = URLRequest(url: self)
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
68 | }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:67:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
68 | }
69 | .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 | // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - Returns: The disposition and optional credential that the session should use.
26 | public func urlSession(
27 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | public func urlSession(
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:49:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | ///
48 | /// The declarations in this scope provide focused utilities while preserving the type’s standard behavior.
49 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
50 | /// A URLSession that ignores SSL certificate errors.
51 | public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 | return (.performDefaultHandling, nil)
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
35 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:38:22: error: cannot infer contextual base in reference to member 'useCredential'
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
38 | return (.useCredential, cred)
| `- error: cannot infer contextual base in reference to member 'useCredential'
39 | default:
40 | return (.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:40:22: error: cannot infer contextual base in reference to member 'performDefaultHandling'
38 | return (.useCredential, cred)
39 | default:
40 | return (.performDefaultHandling, nil)
| `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
41 | }
42 | #endif
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[133/223] Compiling SwiftExtras UIDevice+Utilities.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:26:25: error: cannot find 'DispatchSemaphore' in scope
24 | operation: @escaping @Sendable () async throws -> Success
25 | ) {
26 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
27 |
28 | _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:49:23: error: cannot find 'URLRequest' in scope
47 | /// - Returns: A Boolean value indicating whether the URL is reachable.
48 | public func isReachable() async -> Bool {
49 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
50 | request.httpMethod = "HEAD"
51 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:53:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
54 | return (response as? HTTPURLResponse)?.statusCode == 200
55 | } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:54:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
54 | return (response as? HTTPURLResponse)?.statusCode == 200
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 | } catch {
56 | return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:23: error: cannot find 'URLRequest' in scope
62 | /// - completion: A closure that is called with the result of the request.
63 | public func isReachable(completion: @escaping (Bool) -> Void) {
64 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:66:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 | var request = URLRequest(url: self)
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
68 | }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:67:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
68 | }
69 | .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 | // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - Returns: The disposition and optional credential that the session should use.
26 | public func urlSession(
27 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | public func urlSession(
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:49:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | ///
48 | /// The declarations in this scope provide focused utilities while preserving the type’s standard behavior.
49 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
50 | /// A URLSession that ignores SSL certificate errors.
51 | public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 | return (.performDefaultHandling, nil)
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
35 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:38:22: error: cannot infer contextual base in reference to member 'useCredential'
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
38 | return (.useCredential, cred)
| `- error: cannot infer contextual base in reference to member 'useCredential'
39 | default:
40 | return (.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:40:22: error: cannot infer contextual base in reference to member 'performDefaultHandling'
38 | return (.useCredential, cred)
39 | default:
40 | return (.performDefaultHandling, nil)
| `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
41 | }
42 | #endif
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[134/223] Compiling SwiftExtras URL+.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:26:25: error: cannot find 'DispatchSemaphore' in scope
24 | operation: @escaping @Sendable () async throws -> Success
25 | ) {
26 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
27 |
28 | _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:49:23: error: cannot find 'URLRequest' in scope
47 | /// - Returns: A Boolean value indicating whether the URL is reachable.
48 | public func isReachable() async -> Bool {
49 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
50 | request.httpMethod = "HEAD"
51 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:53:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
54 | return (response as? HTTPURLResponse)?.statusCode == 200
55 | } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:54:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
54 | return (response as? HTTPURLResponse)?.statusCode == 200
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 | } catch {
56 | return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:23: error: cannot find 'URLRequest' in scope
62 | /// - completion: A closure that is called with the result of the request.
63 | public func isReachable(completion: @escaping (Bool) -> Void) {
64 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:66:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 | var request = URLRequest(url: self)
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
68 | }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:67:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
68 | }
69 | .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 | // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - Returns: The disposition and optional credential that the session should use.
26 | public func urlSession(
27 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | public func urlSession(
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:49:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | ///
48 | /// The declarations in this scope provide focused utilities while preserving the type’s standard behavior.
49 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
50 | /// A URLSession that ignores SSL certificate errors.
51 | public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 | return (.performDefaultHandling, nil)
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
35 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:38:22: error: cannot infer contextual base in reference to member 'useCredential'
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
38 | return (.useCredential, cred)
| `- error: cannot infer contextual base in reference to member 'useCredential'
39 | default:
40 | return (.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:40:22: error: cannot infer contextual base in reference to member 'performDefaultHandling'
38 | return (.useCredential, cred)
39 | default:
40 | return (.performDefaultHandling, nil)
| `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
41 | }
42 | #endif
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[135/223] Compiling SwiftExtras URLSession.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:26:25: error: cannot find 'DispatchSemaphore' in scope
24 | operation: @escaping @Sendable () async throws -> Success
25 | ) {
26 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
27 |
28 | _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:49:23: error: cannot find 'URLRequest' in scope
47 | /// - Returns: A Boolean value indicating whether the URL is reachable.
48 | public func isReachable() async -> Bool {
49 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
50 | request.httpMethod = "HEAD"
51 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:53:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 |
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
54 | return (response as? HTTPURLResponse)?.statusCode == 200
55 | } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:54:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | do {
53 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
54 | return (response as? HTTPURLResponse)?.statusCode == 200
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 | } catch {
56 | return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:23: error: cannot find 'URLRequest' in scope
62 | /// - completion: A closure that is called with the result of the request.
63 | public func isReachable(completion: @escaping (Bool) -> Void) {
64 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:66:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 | var request = URLRequest(url: self)
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
68 | }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:67:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | request.httpMethod = "HEAD"
66 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
67 | completion((response as? HTTPURLResponse)?.statusCode == 200)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
68 | }
69 | .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 | /// Handles a server-trust authentication challenge without certificate validation.
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 | // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - Returns: The disposition and optional credential that the session should use.
26 | public func urlSession(
27 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | public func urlSession(
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:49:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | ///
48 | /// The declarations in this scope provide focused utilities while preserving the type’s standard behavior.
49 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
50 | /// A URLSession that ignores SSL certificate errors.
51 | public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 | return (.performDefaultHandling, nil)
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
35 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:38:22: error: cannot infer contextual base in reference to member 'useCredential'
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
38 | return (.useCredential, cred)
| `- error: cannot infer contextual base in reference to member 'useCredential'
39 | default:
40 | return (.performDefaultHandling, nil)
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:40:22: error: cannot infer contextual base in reference to member 'performDefaultHandling'
38 | return (.useCredential, cred)
39 | default:
40 | return (.performDefaultHandling, nil)
| `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
41 | }
42 | #endif
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[136/223] Compiling SwiftExtras DisclosureSection.swift
[137/223] Compiling SwiftExtras HorizontalStepper.swift
[138/223] Compiling SwiftExtras IndexedList.swift
[139/223] Compiling SwiftExtras LabeledTextField.swift
[140/223] Compiling SwiftExtras LimitedTextField.swift
[141/223] Compiling SwiftExtras MatchedPopover.swift
[142/223] Compiling SwiftExtras MonthYearPickerView.swift
[143/223] Compiling SwiftExtras MultiSelectPickerView.swift
[144/223] Compiling SwiftExtras MultiSelectView.swift
[145/223] Compiling SwiftExtras NavigationViewIfNeeded.swift
[146/223] Compiling SwiftExtras NotificationOnboarding.swift
[147/223] Compiling SwiftExtras NotificationOnboardingSupport.swift
[148/223] Compiling SwiftExtras NotificationView.swift
[149/223] Compiling SwiftExtras Onboarding.swift
[150/223] Compiling SwiftExtras SEAcknowledgementView.swift
[151/223] Compiling SwiftExtras SEChangeLogView.swift
[152/223] Compiling SwiftExtras SESettingsView.swift
[153/223] Compiling SwiftExtras SplitActionButton.swift
[154/223] Compiling SwiftExtras SpotlightOnboarding.swift
[155/223] Compiling SwiftExtras VerificationField.swift
[156/223] Compiling SwiftExtras resource_bundle_accessor.swift
[157/223] Compiling SwiftExtras Date+Identifiable.swift
[158/223] Compiling SwiftExtras Date+getFormattedDate.swift
[159/223] Compiling SwiftExtras Dictionary+RawRepresentable.swift
[160/223] Compiling SwiftExtras Double+.swift
[161/223] Compiling SwiftExtras Error+errorCode.swift
[162/223] Compiling SwiftExtras Float.swift
[163/223] Compiling SwiftExtras Image+Platform.swift
[164/223] Compiling SwiftExtras Image+centerCropped.swift
[165/223] Compiling SwiftExtras PlatformImage+.swift
[166/223] Compiling SwiftExtras Int+.swift
[167/223] Compiling SwiftExtras Locale+Utilities.swift
[168/223] Compiling SwiftExtras LocalizedStringKey+.swift
[169/223] Compiling SwiftExtras LocalizedStringKey+Identifiable.swift
[170/223] Compiling SwiftExtras Logger+.swift
[171/223] Compiling SwiftExtras NotificationName+.swift
[172/223] Compiling SwiftExtras Optional+isNilOrEmpty.swift
[173/223] Compiling SwiftExtras ProcessInfo+Utilities.swift
[174/223] Compiling SwiftExtras Sequence+.swift
[175/223] Compiling SwiftExtras String+ANSIColors.swift
[176/223] Compiling SwiftExtras String+Base64.swift
[177/223] Compiling SwiftExtras String+HTML.swift
[178/223] Compiling SwiftExtras BackgroundRemover.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Enums/AppInfo.swift:238:76: warning: 'SEAppInfoAppStoreInfo' is deprecated: This struct is deprecated and may be removed in future versions. [#DeprecatedDeclaration]
236 | /// - Parameter forceRefresh: forced refresh?
237 | /// - Returns: AppStore information
238 | public static func appStoreInfo(_ forceRefresh: Bool = false) async -> SEAppInfoAppStoreInfo? {
| `- warning: 'SEAppInfoAppStoreInfo' is deprecated: This struct is deprecated and may be removed in future versions. [#DeprecatedDeclaration]
239 | #if os(macOS) || os(iOS)
240 | let decoder = JSONDecoder()
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[179/223] Compiling SwiftExtras SensoryFeedback.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Enums/AppInfo.swift:238:76: warning: 'SEAppInfoAppStoreInfo' is deprecated: This struct is deprecated and may be removed in future versions. [#DeprecatedDeclaration]
236 | /// - Parameter forceRefresh: forced refresh?
237 | /// - Returns: AppStore information
238 | public static func appStoreInfo(_ forceRefresh: Bool = false) async -> SEAppInfoAppStoreInfo? {
| `- warning: 'SEAppInfoAppStoreInfo' is deprecated: This struct is deprecated and may be removed in future versions. [#DeprecatedDeclaration]
239 | #if os(macOS) || os(iOS)
240 | let decoder = JSONDecoder()
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[180/223] Compiling SwiftExtras AppInfo.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Enums/AppInfo.swift:238:76: warning: 'SEAppInfoAppStoreInfo' is deprecated: This struct is deprecated and may be removed in future versions. [#DeprecatedDeclaration]
236 | /// - Parameter forceRefresh: forced refresh?
237 | /// - Returns: AppStore information
238 | public static func appStoreInfo(_ forceRefresh: Bool = false) async -> SEAppInfoAppStoreInfo? {
| `- warning: 'SEAppInfoAppStoreInfo' is deprecated: This struct is deprecated and may be removed in future versions. [#DeprecatedDeclaration]
239 | #if os(macOS) || os(iOS)
240 | let decoder = JSONDecoder()
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[181/223] Compiling SwiftExtras Device.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Enums/AppInfo.swift:238:76: warning: 'SEAppInfoAppStoreInfo' is deprecated: This struct is deprecated and may be removed in future versions. [#DeprecatedDeclaration]
236 | /// - Parameter forceRefresh: forced refresh?
237 | /// - Returns: AppStore information
238 | public static func appStoreInfo(_ forceRefresh: Bool = false) async -> SEAppInfoAppStoreInfo? {
| `- warning: 'SEAppInfoAppStoreInfo' is deprecated: This struct is deprecated and may be removed in future versions. [#DeprecatedDeclaration]
239 | #if os(macOS) || os(iOS)
240 | let decoder = JSONDecoder()
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[182/223] Compiling SwiftExtras Binding+onChange.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Enums/AppInfo.swift:238:76: warning: 'SEAppInfoAppStoreInfo' is deprecated: This struct is deprecated and may be removed in future versions. [#DeprecatedDeclaration]
236 | /// - Parameter forceRefresh: forced refresh?
237 | /// - Returns: AppStore information
238 | public static func appStoreInfo(_ forceRefresh: Bool = false) async -> SEAppInfoAppStoreInfo? {
| `- warning: 'SEAppInfoAppStoreInfo' is deprecated: This struct is deprecated and may be removed in future versions. [#DeprecatedDeclaration]
239 | #if os(macOS) || os(iOS)
240 | let decoder = JSONDecoder()
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[183/223] Compiling SwiftExtras Binding+optional.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Enums/AppInfo.swift:238:76: warning: 'SEAppInfoAppStoreInfo' is deprecated: This struct is deprecated and may be removed in future versions. [#DeprecatedDeclaration]
236 | /// - Parameter forceRefresh: forced refresh?
237 | /// - Returns: AppStore information
238 | public static func appStoreInfo(_ forceRefresh: Bool = false) async -> SEAppInfoAppStoreInfo? {
| `- warning: 'SEAppInfoAppStoreInfo' is deprecated: This struct is deprecated and may be removed in future versions. [#DeprecatedDeclaration]
239 | #if os(macOS) || os(iOS)
240 | let decoder = JSONDecoder()
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[184/223] Compiling SwiftExtras CGFloat+.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Enums/AppInfo.swift:238:76: warning: 'SEAppInfoAppStoreInfo' is deprecated: This struct is deprecated and may be removed in future versions. [#DeprecatedDeclaration]
236 | /// - Parameter forceRefresh: forced refresh?
237 | /// - Returns: AppStore information
238 | public static func appStoreInfo(_ forceRefresh: Bool = false) async -> SEAppInfoAppStoreInfo? {
| `- warning: 'SEAppInfoAppStoreInfo' is deprecated: This struct is deprecated and may be removed in future versions. [#DeprecatedDeclaration]
239 | #if os(macOS) || os(iOS)
240 | let decoder = JSONDecoder()
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[185/223] Compiling SwiftExtras CGSize+device.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Enums/AppInfo.swift:238:76: warning: 'SEAppInfoAppStoreInfo' is deprecated: This struct is deprecated and may be removed in future versions. [#DeprecatedDeclaration]
236 | /// - Parameter forceRefresh: forced refresh?
237 | /// - Returns: AppStore information
238 | public static func appStoreInfo(_ forceRefresh: Bool = false) async -> SEAppInfoAppStoreInfo? {
| `- warning: 'SEAppInfoAppStoreInfo' is deprecated: This struct is deprecated and may be removed in future versions. [#DeprecatedDeclaration]
239 | #if os(macOS) || os(iOS)
240 | let decoder = JSONDecoder()
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[186/223] Compiling SwiftExtras Collection+.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Enums/AppInfo.swift:238:76: warning: 'SEAppInfoAppStoreInfo' is deprecated: This struct is deprecated and may be removed in future versions. [#DeprecatedDeclaration]
236 | /// - Parameter forceRefresh: forced refresh?
237 | /// - Returns: AppStore information
238 | public static func appStoreInfo(_ forceRefresh: Bool = false) async -> SEAppInfoAppStoreInfo? {
| `- warning: 'SEAppInfoAppStoreInfo' is deprecated: This struct is deprecated and may be removed in future versions. [#DeprecatedDeclaration]
239 | #if os(macOS) || os(iOS)
240 | let decoder = JSONDecoder()
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[187/223] Compiling SwiftExtras Collection+safeIndex.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Enums/AppInfo.swift:238:76: warning: 'SEAppInfoAppStoreInfo' is deprecated: This struct is deprecated and may be removed in future versions. [#DeprecatedDeclaration]
236 | /// - Parameter forceRefresh: forced refresh?
237 | /// - Returns: AppStore information
238 | public static func appStoreInfo(_ forceRefresh: Bool = false) async -> SEAppInfoAppStoreInfo? {
| `- warning: 'SEAppInfoAppStoreInfo' is deprecated: This struct is deprecated and may be removed in future versions. [#DeprecatedDeclaration]
239 | #if os(macOS) || os(iOS)
240 | let decoder = JSONDecoder()
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[188/223] Compiling SwiftExtras Color+Codable.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Enums/AppInfo.swift:238:76: warning: 'SEAppInfoAppStoreInfo' is deprecated: This struct is deprecated and may be removed in future versions. [#DeprecatedDeclaration]
236 | /// - Parameter forceRefresh: forced refresh?
237 | /// - Returns: AppStore information
238 | public static func appStoreInfo(_ forceRefresh: Bool = false) async -> SEAppInfoAppStoreInfo? {
| `- warning: 'SEAppInfoAppStoreInfo' is deprecated: This struct is deprecated and may be removed in future versions. [#DeprecatedDeclaration]
239 | #if os(macOS) || os(iOS)
240 | let decoder = JSONDecoder()
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[189/223] Compiling SwiftExtras Color+Identifiable.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Enums/AppInfo.swift:238:76: warning: 'SEAppInfoAppStoreInfo' is deprecated: This struct is deprecated and may be removed in future versions. [#DeprecatedDeclaration]
236 | /// - Parameter forceRefresh: forced refresh?
237 | /// - Returns: AppStore information
238 | public static func appStoreInfo(_ forceRefresh: Bool = false) async -> SEAppInfoAppStoreInfo? {
| `- warning: 'SEAppInfoAppStoreInfo' is deprecated: This struct is deprecated and may be removed in future versions. [#DeprecatedDeclaration]
239 | #if os(macOS) || os(iOS)
240 | let decoder = JSONDecoder()
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[190/223] Compiling SwiftExtras Color+colorBlind.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Enums/AppInfo.swift:238:76: warning: 'SEAppInfoAppStoreInfo' is deprecated: This struct is deprecated and may be removed in future versions. [#DeprecatedDeclaration]
236 | /// - Parameter forceRefresh: forced refresh?
237 | /// - Returns: AppStore information
238 | public static func appStoreInfo(_ forceRefresh: Bool = false) async -> SEAppInfoAppStoreInfo? {
| `- warning: 'SEAppInfoAppStoreInfo' is deprecated: This struct is deprecated and may be removed in future versions. [#DeprecatedDeclaration]
239 | #if os(macOS) || os(iOS)
240 | let decoder = JSONDecoder()
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[191/223] Compiling SwiftExtras Color+components.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Enums/AppInfo.swift:238:76: warning: 'SEAppInfoAppStoreInfo' is deprecated: This struct is deprecated and may be removed in future versions. [#DeprecatedDeclaration]
236 | /// - Parameter forceRefresh: forced refresh?
237 | /// - Returns: AppStore information
238 | public static func appStoreInfo(_ forceRefresh: Bool = false) async -> SEAppInfoAppStoreInfo? {
| `- warning: 'SEAppInfoAppStoreInfo' is deprecated: This struct is deprecated and may be removed in future versions. [#DeprecatedDeclaration]
239 | #if os(macOS) || os(iOS)
240 | let decoder = JSONDecoder()
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[192/223] Compiling SwiftExtras Color+default.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Enums/AppInfo.swift:238:76: warning: 'SEAppInfoAppStoreInfo' is deprecated: This struct is deprecated and may be removed in future versions. [#DeprecatedDeclaration]
236 | /// - Parameter forceRefresh: forced refresh?
237 | /// - Returns: AppStore information
238 | public static func appStoreInfo(_ forceRefresh: Bool = false) async -> SEAppInfoAppStoreInfo? {
| `- warning: 'SEAppInfoAppStoreInfo' is deprecated: This struct is deprecated and may be removed in future versions. [#DeprecatedDeclaration]
239 | #if os(macOS) || os(iOS)
240 | let decoder = JSONDecoder()
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[193/223] Compiling SwiftExtras Color+dynamicColor.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Enums/AppInfo.swift:238:76: warning: 'SEAppInfoAppStoreInfo' is deprecated: This struct is deprecated and may be removed in future versions. [#DeprecatedDeclaration]
236 | /// - Parameter forceRefresh: forced refresh?
237 | /// - Returns: AppStore information
238 | public static func appStoreInfo(_ forceRefresh: Bool = false) async -> SEAppInfoAppStoreInfo? {
| `- warning: 'SEAppInfoAppStoreInfo' is deprecated: This struct is deprecated and may be removed in future versions. [#DeprecatedDeclaration]
239 | #if os(macOS) || os(iOS)
240 | let decoder = JSONDecoder()
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[194/223] Compiling SwiftExtras Color+init.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Enums/AppInfo.swift:238:76: warning: 'SEAppInfoAppStoreInfo' is deprecated: This struct is deprecated and may be removed in future versions. [#DeprecatedDeclaration]
236 | /// - Parameter forceRefresh: forced refresh?
237 | /// - Returns: AppStore information
238 | public static func appStoreInfo(_ forceRefresh: Bool = false) async -> SEAppInfoAppStoreInfo? {
| `- warning: 'SEAppInfoAppStoreInfo' is deprecated: This struct is deprecated and may be removed in future versions. [#DeprecatedDeclaration]
239 | #if os(macOS) || os(iOS)
240 | let decoder = JSONDecoder()
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[195/223] Compiling SwiftExtras Color+random.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Enums/AppInfo.swift:238:76: warning: 'SEAppInfoAppStoreInfo' is deprecated: This struct is deprecated and may be removed in future versions. [#DeprecatedDeclaration]
236 | /// - Parameter forceRefresh: forced refresh?
237 | /// - Returns: AppStore information
238 | public static func appStoreInfo(_ forceRefresh: Bool = false) async -> SEAppInfoAppStoreInfo? {
| `- warning: 'SEAppInfoAppStoreInfo' is deprecated: This struct is deprecated and may be removed in future versions. [#DeprecatedDeclaration]
239 | #if os(macOS) || os(iOS)
240 | let decoder = JSONDecoder()
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[196/223] Compiling SwiftExtras PlatformColor+.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Enums/AppInfo.swift:238:76: warning: 'SEAppInfoAppStoreInfo' is deprecated: This struct is deprecated and may be removed in future versions. [#DeprecatedDeclaration]
236 | /// - Parameter forceRefresh: forced refresh?
237 | /// - Returns: AppStore information
238 | public static func appStoreInfo(_ forceRefresh: Bool = false) async -> SEAppInfoAppStoreInfo? {
| `- warning: 'SEAppInfoAppStoreInfo' is deprecated: This struct is deprecated and may be removed in future versions. [#DeprecatedDeclaration]
239 | #if os(macOS) || os(iOS)
240 | let decoder = JSONDecoder()
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[197/223] Compiling SwiftExtras Data.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Enums/AppInfo.swift:238:76: warning: 'SEAppInfoAppStoreInfo' is deprecated: This struct is deprecated and may be removed in future versions. [#DeprecatedDeclaration]
236 | /// - Parameter forceRefresh: forced refresh?
237 | /// - Returns: AppStore information
238 | public static func appStoreInfo(_ forceRefresh: Bool = false) async -> SEAppInfoAppStoreInfo? {
| `- warning: 'SEAppInfoAppStoreInfo' is deprecated: This struct is deprecated and may be removed in future versions. [#DeprecatedDeclaration]
239 | #if os(macOS) || os(iOS)
240 | let decoder = JSONDecoder()
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[198/223] Compiling SwiftExtras Date+.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Enums/AppInfo.swift:238:76: warning: 'SEAppInfoAppStoreInfo' is deprecated: This struct is deprecated and may be removed in future versions. [#DeprecatedDeclaration]
236 | /// - Parameter forceRefresh: forced refresh?
237 | /// - Returns: AppStore information
238 | public static func appStoreInfo(_ forceRefresh: Bool = false) async -> SEAppInfoAppStoreInfo? {
| `- warning: 'SEAppInfoAppStoreInfo' is deprecated: This struct is deprecated and may be removed in future versions. [#DeprecatedDeclaration]
239 | #if os(macOS) || os(iOS)
240 | let decoder = JSONDecoder()
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[199/223] Compiling SwiftExtras highlight.swift
[200/223] Compiling SwiftExtras NSPasteboard+string.swift
[201/223] Compiling SwiftExtras PlatformTypes.swift
[202/223] Compiling SwiftExtras PlatformViewRepresentable.swift
[203/223] Compiling SwiftExtras openURL.swift
[204/223] Compiling SwiftExtras RegularExpressionOperator.swift
[205/223] Compiling SwiftExtras optionalBinding.swift
[206/223] Compiling SwiftExtras PictureInPicture.swift
[207/223] Compiling SwiftExtras PictureInPictureController.swift
[208/223] Compiling SwiftExtras PictureInPictureLayerView.swift
[209/223] Compiling SwiftExtras PictureInPictureRenderer.swift
[210/223] Compiling SwiftExtras View+PictureInPicture.swift
[211/223] Compiling SwiftExtras AutoEquatable.swift
[212/223] Compiling SwiftExtras MailView.swift
[213/223] Compiling SwiftExtras SFSafari.swift
[214/223] Compiling SwiftExtras WebView.swift
[215/223] Compiling SwiftExtras HexShape.swift
[216/223] Compiling SwiftExtras AnyCodable.swift
[217/223] Compiling SwiftExtras DeviceInfo.swift
[218/223] Compiling SwiftExtras Dynamic.swift
[219/223] Compiling SwiftExtras DynamicJSON.swift
BUILD FAILURE 6.3 wasm