Build Information
Failed to build SwiftExtras, reference 1.2.8 (eb8f9d), with Swift 6.2 for Wasm on 29 Sep 2026 15:44:33 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344845-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1Build Log
65 | }
66 | .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 | // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - completionHandler: The completion handler to call with the disposition and credential.
26 | public func urlSession(
27 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | public func urlSession(
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
21 | /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 | /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:46:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
44 | }
45 |
46 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | /// A URLSession that ignores SSL certificate errors.
48 | public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 | return (.performDefaultHandling, nil)
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
35 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | return (.useCredential, cred)
39 | default:
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[198/220] Compiling SwiftExtras String+Quoted.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:23:25: error: cannot find 'DispatchSemaphore' in scope
21 | operation: @escaping @Sendable () async throws -> Success
22 | ) {
23 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
24 |
25 | _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:46:23: error: cannot find 'URLRequest' in scope
44 | /// - Returns: A Boolean value indicating whether the URL is reachable.
45 | public func isReachable() async -> Bool {
46 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
47 | request.httpMethod = "HEAD"
48 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:50:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
48 |
49 | do {
50 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 | return (response as? HTTPURLResponse)?.statusCode == 200
52 | } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:51:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 | do {
50 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
51 | return (response as? HTTPURLResponse)?.statusCode == 200
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | } catch {
53 | return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:61:23: error: cannot find 'URLRequest' in scope
59 | /// - completion: A closure that is called with the result of the request.
60 | public func isReachable(completion: @escaping (Bool) -> Void) {
61 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
62 | request.httpMethod = "HEAD"
63 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:63:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
61 | var request = URLRequest(url: self)
62 | request.httpMethod = "HEAD"
63 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 | completion((response as? HTTPURLResponse)?.statusCode == 200)
65 | }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 | request.httpMethod = "HEAD"
63 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
64 | completion((response as? HTTPURLResponse)?.statusCode == 200)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | }
66 | .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 | // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - completionHandler: The completion handler to call with the disposition and credential.
26 | public func urlSession(
27 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | public func urlSession(
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
21 | /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 | /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:46:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
44 | }
45 |
46 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | /// A URLSession that ignores SSL certificate errors.
48 | public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 | return (.performDefaultHandling, nil)
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
35 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | return (.useCredential, cred)
39 | default:
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[199/220] Compiling SwiftExtras String+Split.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:23:25: error: cannot find 'DispatchSemaphore' in scope
21 | operation: @escaping @Sendable () async throws -> Success
22 | ) {
23 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
24 |
25 | _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:46:23: error: cannot find 'URLRequest' in scope
44 | /// - Returns: A Boolean value indicating whether the URL is reachable.
45 | public func isReachable() async -> Bool {
46 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
47 | request.httpMethod = "HEAD"
48 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:50:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
48 |
49 | do {
50 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 | return (response as? HTTPURLResponse)?.statusCode == 200
52 | } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:51:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 | do {
50 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
51 | return (response as? HTTPURLResponse)?.statusCode == 200
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | } catch {
53 | return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:61:23: error: cannot find 'URLRequest' in scope
59 | /// - completion: A closure that is called with the result of the request.
60 | public func isReachable(completion: @escaping (Bool) -> Void) {
61 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
62 | request.httpMethod = "HEAD"
63 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:63:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
61 | var request = URLRequest(url: self)
62 | request.httpMethod = "HEAD"
63 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 | completion((response as? HTTPURLResponse)?.statusCode == 200)
65 | }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 | request.httpMethod = "HEAD"
63 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
64 | completion((response as? HTTPURLResponse)?.statusCode == 200)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | }
66 | .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 | // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - completionHandler: The completion handler to call with the disposition and credential.
26 | public func urlSession(
27 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | public func urlSession(
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
21 | /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 | /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:46:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
44 | }
45 |
46 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | /// A URLSession that ignores SSL certificate errors.
48 | public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 | return (.performDefaultHandling, nil)
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
35 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | return (.useCredential, cred)
39 | default:
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[200/220] Compiling SwiftExtras String+clean.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:23:25: error: cannot find 'DispatchSemaphore' in scope
21 | operation: @escaping @Sendable () async throws -> Success
22 | ) {
23 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
24 |
25 | _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:46:23: error: cannot find 'URLRequest' in scope
44 | /// - Returns: A Boolean value indicating whether the URL is reachable.
45 | public func isReachable() async -> Bool {
46 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
47 | request.httpMethod = "HEAD"
48 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:50:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
48 |
49 | do {
50 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 | return (response as? HTTPURLResponse)?.statusCode == 200
52 | } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:51:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 | do {
50 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
51 | return (response as? HTTPURLResponse)?.statusCode == 200
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | } catch {
53 | return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:61:23: error: cannot find 'URLRequest' in scope
59 | /// - completion: A closure that is called with the result of the request.
60 | public func isReachable(completion: @escaping (Bool) -> Void) {
61 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
62 | request.httpMethod = "HEAD"
63 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:63:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
61 | var request = URLRequest(url: self)
62 | request.httpMethod = "HEAD"
63 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 | completion((response as? HTTPURLResponse)?.statusCode == 200)
65 | }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 | request.httpMethod = "HEAD"
63 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
64 | completion((response as? HTTPURLResponse)?.statusCode == 200)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | }
66 | .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 | // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - completionHandler: The completion handler to call with the disposition and credential.
26 | public func urlSession(
27 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | public func urlSession(
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
21 | /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 | /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:46:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
44 | }
45 |
46 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | /// A URLSession that ignores SSL certificate errors.
48 | public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 | return (.performDefaultHandling, nil)
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
35 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | return (.useCredential, cred)
39 | default:
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[201/220] Compiling SwiftExtras String+contains.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:23:25: error: cannot find 'DispatchSemaphore' in scope
21 | operation: @escaping @Sendable () async throws -> Success
22 | ) {
23 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
24 |
25 | _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:46:23: error: cannot find 'URLRequest' in scope
44 | /// - Returns: A Boolean value indicating whether the URL is reachable.
45 | public func isReachable() async -> Bool {
46 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
47 | request.httpMethod = "HEAD"
48 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:50:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
48 |
49 | do {
50 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 | return (response as? HTTPURLResponse)?.statusCode == 200
52 | } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:51:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 | do {
50 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
51 | return (response as? HTTPURLResponse)?.statusCode == 200
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | } catch {
53 | return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:61:23: error: cannot find 'URLRequest' in scope
59 | /// - completion: A closure that is called with the result of the request.
60 | public func isReachable(completion: @escaping (Bool) -> Void) {
61 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
62 | request.httpMethod = "HEAD"
63 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:63:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
61 | var request = URLRequest(url: self)
62 | request.httpMethod = "HEAD"
63 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 | completion((response as? HTTPURLResponse)?.statusCode == 200)
65 | }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 | request.httpMethod = "HEAD"
63 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
64 | completion((response as? HTTPURLResponse)?.statusCode == 200)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | }
66 | .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 | // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - completionHandler: The completion handler to call with the disposition and credential.
26 | public func urlSession(
27 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | public func urlSession(
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
21 | /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 | /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:46:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
44 | }
45 |
46 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | /// A URLSession that ignores SSL certificate errors.
48 | public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 | return (.performDefaultHandling, nil)
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
35 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | return (.useCredential, cred)
39 | default:
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[202/220] Compiling SwiftExtras String+error.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:23:25: error: cannot find 'DispatchSemaphore' in scope
21 | operation: @escaping @Sendable () async throws -> Success
22 | ) {
23 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
24 |
25 | _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:46:23: error: cannot find 'URLRequest' in scope
44 | /// - Returns: A Boolean value indicating whether the URL is reachable.
45 | public func isReachable() async -> Bool {
46 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
47 | request.httpMethod = "HEAD"
48 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:50:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
48 |
49 | do {
50 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 | return (response as? HTTPURLResponse)?.statusCode == 200
52 | } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:51:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 | do {
50 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
51 | return (response as? HTTPURLResponse)?.statusCode == 200
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | } catch {
53 | return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:61:23: error: cannot find 'URLRequest' in scope
59 | /// - completion: A closure that is called with the result of the request.
60 | public func isReachable(completion: @escaping (Bool) -> Void) {
61 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
62 | request.httpMethod = "HEAD"
63 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:63:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
61 | var request = URLRequest(url: self)
62 | request.httpMethod = "HEAD"
63 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 | completion((response as? HTTPURLResponse)?.statusCode == 200)
65 | }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 | request.httpMethod = "HEAD"
63 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
64 | completion((response as? HTTPURLResponse)?.statusCode == 200)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | }
66 | .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 | // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - completionHandler: The completion handler to call with the disposition and credential.
26 | public func urlSession(
27 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | public func urlSession(
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
21 | /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 | /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:46:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
44 | }
45 |
46 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | /// A URLSession that ignores SSL certificate errors.
48 | public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 | return (.performDefaultHandling, nil)
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
35 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | return (.useCredential, cred)
39 | default:
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[203/220] Compiling SwiftExtras String+fuzzyMatches.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:23:25: error: cannot find 'DispatchSemaphore' in scope
21 | operation: @escaping @Sendable () async throws -> Success
22 | ) {
23 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
24 |
25 | _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:46:23: error: cannot find 'URLRequest' in scope
44 | /// - Returns: A Boolean value indicating whether the URL is reachable.
45 | public func isReachable() async -> Bool {
46 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
47 | request.httpMethod = "HEAD"
48 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:50:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
48 |
49 | do {
50 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 | return (response as? HTTPURLResponse)?.statusCode == 200
52 | } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:51:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 | do {
50 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
51 | return (response as? HTTPURLResponse)?.statusCode == 200
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | } catch {
53 | return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:61:23: error: cannot find 'URLRequest' in scope
59 | /// - completion: A closure that is called with the result of the request.
60 | public func isReachable(completion: @escaping (Bool) -> Void) {
61 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
62 | request.httpMethod = "HEAD"
63 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:63:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
61 | var request = URLRequest(url: self)
62 | request.httpMethod = "HEAD"
63 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 | completion((response as? HTTPURLResponse)?.statusCode == 200)
65 | }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 | request.httpMethod = "HEAD"
63 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
64 | completion((response as? HTTPURLResponse)?.statusCode == 200)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | }
66 | .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 | // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - completionHandler: The completion handler to call with the disposition and credential.
26 | public func urlSession(
27 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | public func urlSession(
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
21 | /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 | /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:46:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
44 | }
45 |
46 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | /// A URLSession that ignores SSL certificate errors.
48 | public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 | return (.performDefaultHandling, nil)
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
35 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | return (.useCredential, cred)
39 | default:
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[204/220] Compiling SwiftExtras String+hashed.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:23:25: error: cannot find 'DispatchSemaphore' in scope
21 | operation: @escaping @Sendable () async throws -> Success
22 | ) {
23 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
24 |
25 | _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:46:23: error: cannot find 'URLRequest' in scope
44 | /// - Returns: A Boolean value indicating whether the URL is reachable.
45 | public func isReachable() async -> Bool {
46 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
47 | request.httpMethod = "HEAD"
48 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:50:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
48 |
49 | do {
50 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 | return (response as? HTTPURLResponse)?.statusCode == 200
52 | } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:51:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 | do {
50 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
51 | return (response as? HTTPURLResponse)?.statusCode == 200
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | } catch {
53 | return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:61:23: error: cannot find 'URLRequest' in scope
59 | /// - completion: A closure that is called with the result of the request.
60 | public func isReachable(completion: @escaping (Bool) -> Void) {
61 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
62 | request.httpMethod = "HEAD"
63 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:63:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
61 | var request = URLRequest(url: self)
62 | request.httpMethod = "HEAD"
63 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 | completion((response as? HTTPURLResponse)?.statusCode == 200)
65 | }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 | request.httpMethod = "HEAD"
63 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
64 | completion((response as? HTTPURLResponse)?.statusCode == 200)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | }
66 | .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 | // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - completionHandler: The completion handler to call with the disposition and credential.
26 | public func urlSession(
27 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | public func urlSession(
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
21 | /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 | /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:46:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
44 | }
45 |
46 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | /// A URLSession that ignores SSL certificate errors.
48 | public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 | return (.performDefaultHandling, nil)
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
35 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | return (.useCredential, cred)
39 | default:
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[205/220] Compiling SwiftExtras String+slice.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:23:25: error: cannot find 'DispatchSemaphore' in scope
21 | operation: @escaping @Sendable () async throws -> Success
22 | ) {
23 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
24 |
25 | _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:46:23: error: cannot find 'URLRequest' in scope
44 | /// - Returns: A Boolean value indicating whether the URL is reachable.
45 | public func isReachable() async -> Bool {
46 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
47 | request.httpMethod = "HEAD"
48 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:50:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
48 |
49 | do {
50 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 | return (response as? HTTPURLResponse)?.statusCode == 200
52 | } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:51:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 | do {
50 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
51 | return (response as? HTTPURLResponse)?.statusCode == 200
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | } catch {
53 | return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:61:23: error: cannot find 'URLRequest' in scope
59 | /// - completion: A closure that is called with the result of the request.
60 | public func isReachable(completion: @escaping (Bool) -> Void) {
61 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
62 | request.httpMethod = "HEAD"
63 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:63:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
61 | var request = URLRequest(url: self)
62 | request.httpMethod = "HEAD"
63 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 | completion((response as? HTTPURLResponse)?.statusCode == 200)
65 | }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 | request.httpMethod = "HEAD"
63 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
64 | completion((response as? HTTPURLResponse)?.statusCode == 200)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | }
66 | .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 | // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - completionHandler: The completion handler to call with the disposition and credential.
26 | public func urlSession(
27 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | public func urlSession(
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
21 | /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 | /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:46:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
44 | }
45 |
46 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | /// A URLSession that ignores SSL certificate errors.
48 | public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 | return (.performDefaultHandling, nil)
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
35 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | return (.useCredential, cred)
39 | default:
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[206/220] Compiling SwiftExtras String+slugified.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:23:25: error: cannot find 'DispatchSemaphore' in scope
21 | operation: @escaping @Sendable () async throws -> Success
22 | ) {
23 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
24 |
25 | _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:46:23: error: cannot find 'URLRequest' in scope
44 | /// - Returns: A Boolean value indicating whether the URL is reachable.
45 | public func isReachable() async -> Bool {
46 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
47 | request.httpMethod = "HEAD"
48 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:50:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
48 |
49 | do {
50 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 | return (response as? HTTPURLResponse)?.statusCode == 200
52 | } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:51:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 | do {
50 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
51 | return (response as? HTTPURLResponse)?.statusCode == 200
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | } catch {
53 | return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:61:23: error: cannot find 'URLRequest' in scope
59 | /// - completion: A closure that is called with the result of the request.
60 | public func isReachable(completion: @escaping (Bool) -> Void) {
61 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
62 | request.httpMethod = "HEAD"
63 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:63:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
61 | var request = URLRequest(url: self)
62 | request.httpMethod = "HEAD"
63 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 | completion((response as? HTTPURLResponse)?.statusCode == 200)
65 | }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 | request.httpMethod = "HEAD"
63 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
64 | completion((response as? HTTPURLResponse)?.statusCode == 200)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | }
66 | .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 | // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - completionHandler: The completion handler to call with the disposition and credential.
26 | public func urlSession(
27 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | public func urlSession(
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
21 | /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 | /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:46:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
44 | }
45 |
46 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | /// A URLSession that ignores SSL certificate errors.
48 | public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 | return (.performDefaultHandling, nil)
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
35 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | return (.useCredential, cred)
39 | default:
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[207/220] Compiling SwiftExtras String+subscript.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:23:25: error: cannot find 'DispatchSemaphore' in scope
21 | operation: @escaping @Sendable () async throws -> Success
22 | ) {
23 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
24 |
25 | _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:46:23: error: cannot find 'URLRequest' in scope
44 | /// - Returns: A Boolean value indicating whether the URL is reachable.
45 | public func isReachable() async -> Bool {
46 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
47 | request.httpMethod = "HEAD"
48 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:50:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
48 |
49 | do {
50 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 | return (response as? HTTPURLResponse)?.statusCode == 200
52 | } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:51:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 | do {
50 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
51 | return (response as? HTTPURLResponse)?.statusCode == 200
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | } catch {
53 | return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:61:23: error: cannot find 'URLRequest' in scope
59 | /// - completion: A closure that is called with the result of the request.
60 | public func isReachable(completion: @escaping (Bool) -> Void) {
61 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
62 | request.httpMethod = "HEAD"
63 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:63:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
61 | var request = URLRequest(url: self)
62 | request.httpMethod = "HEAD"
63 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 | completion((response as? HTTPURLResponse)?.statusCode == 200)
65 | }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 | request.httpMethod = "HEAD"
63 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
64 | completion((response as? HTTPURLResponse)?.statusCode == 200)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | }
66 | .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 | // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - completionHandler: The completion handler to call with the disposition and credential.
26 | public func urlSession(
27 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | public func urlSession(
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
21 | /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 | /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:46:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
44 | }
45 |
46 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | /// A URLSession that ignores SSL certificate errors.
48 | public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 | return (.performDefaultHandling, nil)
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
35 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | return (.useCredential, cred)
39 | default:
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[208/220] Compiling SwiftExtras String+trimmed.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:23:25: error: cannot find 'DispatchSemaphore' in scope
21 | operation: @escaping @Sendable () async throws -> Success
22 | ) {
23 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
24 |
25 | _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:46:23: error: cannot find 'URLRequest' in scope
44 | /// - Returns: A Boolean value indicating whether the URL is reachable.
45 | public func isReachable() async -> Bool {
46 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
47 | request.httpMethod = "HEAD"
48 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:50:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
48 |
49 | do {
50 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 | return (response as? HTTPURLResponse)?.statusCode == 200
52 | } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:51:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 | do {
50 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
51 | return (response as? HTTPURLResponse)?.statusCode == 200
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | } catch {
53 | return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:61:23: error: cannot find 'URLRequest' in scope
59 | /// - completion: A closure that is called with the result of the request.
60 | public func isReachable(completion: @escaping (Bool) -> Void) {
61 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
62 | request.httpMethod = "HEAD"
63 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:63:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
61 | var request = URLRequest(url: self)
62 | request.httpMethod = "HEAD"
63 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 | completion((response as? HTTPURLResponse)?.statusCode == 200)
65 | }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 | request.httpMethod = "HEAD"
63 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
64 | completion((response as? HTTPURLResponse)?.statusCode == 200)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | }
66 | .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 | // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - completionHandler: The completion handler to call with the disposition and credential.
26 | public func urlSession(
27 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | public func urlSession(
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
21 | /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 | /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:46:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
44 | }
45 |
46 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | /// A URLSession that ignores SSL certificate errors.
48 | public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 | return (.performDefaultHandling, nil)
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
35 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | return (.useCredential, cred)
39 | default:
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[209/220] Compiling SwiftExtras String+url.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:23:25: error: cannot find 'DispatchSemaphore' in scope
21 | operation: @escaping @Sendable () async throws -> Success
22 | ) {
23 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
24 |
25 | _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:46:23: error: cannot find 'URLRequest' in scope
44 | /// - Returns: A Boolean value indicating whether the URL is reachable.
45 | public func isReachable() async -> Bool {
46 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
47 | request.httpMethod = "HEAD"
48 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:50:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
48 |
49 | do {
50 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 | return (response as? HTTPURLResponse)?.statusCode == 200
52 | } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:51:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 | do {
50 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
51 | return (response as? HTTPURLResponse)?.statusCode == 200
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | } catch {
53 | return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:61:23: error: cannot find 'URLRequest' in scope
59 | /// - completion: A closure that is called with the result of the request.
60 | public func isReachable(completion: @escaping (Bool) -> Void) {
61 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
62 | request.httpMethod = "HEAD"
63 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:63:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
61 | var request = URLRequest(url: self)
62 | request.httpMethod = "HEAD"
63 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 | completion((response as? HTTPURLResponse)?.statusCode == 200)
65 | }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 | request.httpMethod = "HEAD"
63 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
64 | completion((response as? HTTPURLResponse)?.statusCode == 200)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | }
66 | .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 | // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - completionHandler: The completion handler to call with the disposition and credential.
26 | public func urlSession(
27 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | public func urlSession(
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
21 | /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 | /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:46:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
44 | }
45 |
46 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | /// A URLSession that ignores SSL certificate errors.
48 | public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 | return (.performDefaultHandling, nil)
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
35 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | return (.useCredential, cred)
39 | default:
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[210/220] Compiling SwiftExtras StringProtocol+.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:23:25: error: cannot find 'DispatchSemaphore' in scope
21 | operation: @escaping @Sendable () async throws -> Success
22 | ) {
23 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
24 |
25 | _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:46:23: error: cannot find 'URLRequest' in scope
44 | /// - Returns: A Boolean value indicating whether the URL is reachable.
45 | public func isReachable() async -> Bool {
46 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
47 | request.httpMethod = "HEAD"
48 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:50:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
48 |
49 | do {
50 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 | return (response as? HTTPURLResponse)?.statusCode == 200
52 | } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:51:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 | do {
50 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
51 | return (response as? HTTPURLResponse)?.statusCode == 200
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | } catch {
53 | return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:61:23: error: cannot find 'URLRequest' in scope
59 | /// - completion: A closure that is called with the result of the request.
60 | public func isReachable(completion: @escaping (Bool) -> Void) {
61 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
62 | request.httpMethod = "HEAD"
63 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:63:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
61 | var request = URLRequest(url: self)
62 | request.httpMethod = "HEAD"
63 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 | completion((response as? HTTPURLResponse)?.statusCode == 200)
65 | }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 | request.httpMethod = "HEAD"
63 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
64 | completion((response as? HTTPURLResponse)?.statusCode == 200)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | }
66 | .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 | // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - completionHandler: The completion handler to call with the disposition and credential.
26 | public func urlSession(
27 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | public func urlSession(
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
21 | /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 | /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:46:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
44 | }
45 |
46 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | /// A URLSession that ignores SSL certificate errors.
48 | public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 | return (.performDefaultHandling, nil)
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
35 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | return (.useCredential, cred)
39 | default:
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[211/220] Compiling SwiftExtras Task+.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:23:25: error: cannot find 'DispatchSemaphore' in scope
21 | operation: @escaping @Sendable () async throws -> Success
22 | ) {
23 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
24 |
25 | _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:46:23: error: cannot find 'URLRequest' in scope
44 | /// - Returns: A Boolean value indicating whether the URL is reachable.
45 | public func isReachable() async -> Bool {
46 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
47 | request.httpMethod = "HEAD"
48 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:50:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
48 |
49 | do {
50 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 | return (response as? HTTPURLResponse)?.statusCode == 200
52 | } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:51:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 | do {
50 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
51 | return (response as? HTTPURLResponse)?.statusCode == 200
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | } catch {
53 | return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:61:23: error: cannot find 'URLRequest' in scope
59 | /// - completion: A closure that is called with the result of the request.
60 | public func isReachable(completion: @escaping (Bool) -> Void) {
61 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
62 | request.httpMethod = "HEAD"
63 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:63:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
61 | var request = URLRequest(url: self)
62 | request.httpMethod = "HEAD"
63 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 | completion((response as? HTTPURLResponse)?.statusCode == 200)
65 | }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 | request.httpMethod = "HEAD"
63 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
64 | completion((response as? HTTPURLResponse)?.statusCode == 200)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | }
66 | .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 | // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - completionHandler: The completion handler to call with the disposition and credential.
26 | public func urlSession(
27 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | public func urlSession(
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
21 | /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 | /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:46:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
44 | }
45 |
46 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | /// A URLSession that ignores SSL certificate errors.
48 | public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 | return (.performDefaultHandling, nil)
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
35 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | return (.useCredential, cred)
39 | default:
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[212/220] Compiling SwiftExtras Text+Gradient.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:23:25: error: cannot find 'DispatchSemaphore' in scope
21 | operation: @escaping @Sendable () async throws -> Success
22 | ) {
23 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
24 |
25 | _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:46:23: error: cannot find 'URLRequest' in scope
44 | /// - Returns: A Boolean value indicating whether the URL is reachable.
45 | public func isReachable() async -> Bool {
46 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
47 | request.httpMethod = "HEAD"
48 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:50:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
48 |
49 | do {
50 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 | return (response as? HTTPURLResponse)?.statusCode == 200
52 | } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:51:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 | do {
50 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
51 | return (response as? HTTPURLResponse)?.statusCode == 200
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | } catch {
53 | return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:61:23: error: cannot find 'URLRequest' in scope
59 | /// - completion: A closure that is called with the result of the request.
60 | public func isReachable(completion: @escaping (Bool) -> Void) {
61 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
62 | request.httpMethod = "HEAD"
63 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:63:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
61 | var request = URLRequest(url: self)
62 | request.httpMethod = "HEAD"
63 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 | completion((response as? HTTPURLResponse)?.statusCode == 200)
65 | }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 | request.httpMethod = "HEAD"
63 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
64 | completion((response as? HTTPURLResponse)?.statusCode == 200)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | }
66 | .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 | // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - completionHandler: The completion handler to call with the disposition and credential.
26 | public func urlSession(
27 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | public func urlSession(
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
21 | /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 | /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:46:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
44 | }
45 |
46 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | /// A URLSession that ignores SSL certificate errors.
48 | public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 | return (.performDefaultHandling, nil)
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
35 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | return (.useCredential, cred)
39 | default:
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[213/220] Compiling SwiftExtras TimeInterval+.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:23:25: error: cannot find 'DispatchSemaphore' in scope
21 | operation: @escaping @Sendable () async throws -> Success
22 | ) {
23 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
24 |
25 | _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:46:23: error: cannot find 'URLRequest' in scope
44 | /// - Returns: A Boolean value indicating whether the URL is reachable.
45 | public func isReachable() async -> Bool {
46 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
47 | request.httpMethod = "HEAD"
48 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:50:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
48 |
49 | do {
50 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 | return (response as? HTTPURLResponse)?.statusCode == 200
52 | } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:51:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 | do {
50 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
51 | return (response as? HTTPURLResponse)?.statusCode == 200
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | } catch {
53 | return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:61:23: error: cannot find 'URLRequest' in scope
59 | /// - completion: A closure that is called with the result of the request.
60 | public func isReachable(completion: @escaping (Bool) -> Void) {
61 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
62 | request.httpMethod = "HEAD"
63 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:63:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
61 | var request = URLRequest(url: self)
62 | request.httpMethod = "HEAD"
63 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 | completion((response as? HTTPURLResponse)?.statusCode == 200)
65 | }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 | request.httpMethod = "HEAD"
63 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
64 | completion((response as? HTTPURLResponse)?.statusCode == 200)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | }
66 | .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 | // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - completionHandler: The completion handler to call with the disposition and credential.
26 | public func urlSession(
27 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | public func urlSession(
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
21 | /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 | /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:46:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
44 | }
45 |
46 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | /// A URLSession that ignores SSL certificate errors.
48 | public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 | return (.performDefaultHandling, nil)
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
35 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | return (.useCredential, cred)
39 | default:
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[214/220] Compiling SwiftExtras UIDevice+Utilities.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:23:25: error: cannot find 'DispatchSemaphore' in scope
21 | operation: @escaping @Sendable () async throws -> Success
22 | ) {
23 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
24 |
25 | _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:46:23: error: cannot find 'URLRequest' in scope
44 | /// - Returns: A Boolean value indicating whether the URL is reachable.
45 | public func isReachable() async -> Bool {
46 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
47 | request.httpMethod = "HEAD"
48 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:50:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
48 |
49 | do {
50 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 | return (response as? HTTPURLResponse)?.statusCode == 200
52 | } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:51:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 | do {
50 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
51 | return (response as? HTTPURLResponse)?.statusCode == 200
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | } catch {
53 | return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:61:23: error: cannot find 'URLRequest' in scope
59 | /// - completion: A closure that is called with the result of the request.
60 | public func isReachable(completion: @escaping (Bool) -> Void) {
61 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
62 | request.httpMethod = "HEAD"
63 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:63:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
61 | var request = URLRequest(url: self)
62 | request.httpMethod = "HEAD"
63 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 | completion((response as? HTTPURLResponse)?.statusCode == 200)
65 | }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 | request.httpMethod = "HEAD"
63 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
64 | completion((response as? HTTPURLResponse)?.statusCode == 200)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | }
66 | .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 | // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - completionHandler: The completion handler to call with the disposition and credential.
26 | public func urlSession(
27 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | public func urlSession(
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
21 | /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 | /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:46:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
44 | }
45 |
46 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | /// A URLSession that ignores SSL certificate errors.
48 | public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 | return (.performDefaultHandling, nil)
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
35 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | return (.useCredential, cred)
39 | default:
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[215/220] Compiling SwiftExtras URL+.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:23:25: error: cannot find 'DispatchSemaphore' in scope
21 | operation: @escaping @Sendable () async throws -> Success
22 | ) {
23 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
24 |
25 | _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:46:23: error: cannot find 'URLRequest' in scope
44 | /// - Returns: A Boolean value indicating whether the URL is reachable.
45 | public func isReachable() async -> Bool {
46 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
47 | request.httpMethod = "HEAD"
48 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:50:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
48 |
49 | do {
50 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 | return (response as? HTTPURLResponse)?.statusCode == 200
52 | } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:51:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 | do {
50 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
51 | return (response as? HTTPURLResponse)?.statusCode == 200
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | } catch {
53 | return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:61:23: error: cannot find 'URLRequest' in scope
59 | /// - completion: A closure that is called with the result of the request.
60 | public func isReachable(completion: @escaping (Bool) -> Void) {
61 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
62 | request.httpMethod = "HEAD"
63 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:63:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
61 | var request = URLRequest(url: self)
62 | request.httpMethod = "HEAD"
63 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 | completion((response as? HTTPURLResponse)?.statusCode == 200)
65 | }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 | request.httpMethod = "HEAD"
63 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
64 | completion((response as? HTTPURLResponse)?.statusCode == 200)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | }
66 | .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 | // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - completionHandler: The completion handler to call with the disposition and credential.
26 | public func urlSession(
27 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | public func urlSession(
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
21 | /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 | /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:46:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
44 | }
45 |
46 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | /// A URLSession that ignores SSL certificate errors.
48 | public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 | return (.performDefaultHandling, nil)
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
35 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | return (.useCredential, cred)
39 | default:
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[216/220] Compiling SwiftExtras URLSession.swift
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/Task+.swift:23:25: error: cannot find 'DispatchSemaphore' in scope
21 | operation: @escaping @Sendable () async throws -> Success
22 | ) {
23 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
24 |
25 | _ = Task(priority: priority) {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:46:23: error: cannot find 'URLRequest' in scope
44 | /// - Returns: A Boolean value indicating whether the URL is reachable.
45 | public func isReachable() async -> Bool {
46 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
47 | request.httpMethod = "HEAD"
48 |
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:50:54: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
48 |
49 | do {
50 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
51 | return (response as? HTTPURLResponse)?.statusCode == 200
52 | } catch {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:51:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 | do {
50 | let (_, response) = try await URLSession.ignoreCertificateErrors.data(for: request)
51 | return (response as? HTTPURLResponse)?.statusCode == 200
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | } catch {
53 | return false
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:61:23: error: cannot find 'URLRequest' in scope
59 | /// - completion: A closure that is called with the result of the request.
60 | public func isReachable(completion: @escaping (Bool) -> Void) {
61 | var request = URLRequest(url: self)
| `- error: cannot find 'URLRequest' in scope
62 | request.httpMethod = "HEAD"
63 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:63:20: error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
61 | var request = URLRequest(url: self)
62 | request.httpMethod = "HEAD"
63 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'ignoreCertificateErrors'
64 | completion((response as? HTTPURLResponse)?.statusCode == 200)
65 | }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URL+.swift:64:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 | request.httpMethod = "HEAD"
63 | URLSession.ignoreCertificateErrors.dataTask(with: request) { _, response, _ in
64 | completion((response as? HTTPURLResponse)?.statusCode == 200)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | }
66 | .resume()
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:29:28: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | #if os(Linux)
31 | // Not available on linux.
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:27:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - completionHandler: The completion handler to call with the disposition and credential.
26 | public func urlSession(
27 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | didReceive challenge: URLAuthenticationChallenge
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:28:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | public func urlSession(
27 | _ session: URLSession,
28 | didReceive challenge: URLAuthenticationChallenge
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | ) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
30 | #if os(Linux)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:55: error: cannot find type 'URLSessionDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
21 | /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:20:75: error: cannot find type 'URLSessionTaskDelegate' in scope
18 | ///
19 | /// Use this delegate only when certificate validation is intentionally disabled.
20 | public final class IgnoreSSLErrorsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
21 | /// urlSession(_:didReceive:completionHandler:) - Ignore SSL certificate errors
22 | /// - Parameters:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:46:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
44 | }
45 |
46 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
47 | /// A URLSession that ignores SSL certificate errors.
48 | public static let ignoreCertificateErrors: URLSession = {
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:34:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
32 | return (.performDefaultHandling, nil)
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:35:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
33 | #else
34 | switch challenge.protectionSpace.authenticationMethod {
35 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:34: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
38 | return (.useCredential, cred)
39 | default:
/host/spi-builder-workspace/Sources/SwiftExtras/Extensions/URLSession.swift:37:68: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | case NSURLAuthenticationMethodServerTrust:
36 | // No trust APIs on Linux
37 | let cred = challenge.protectionSpace.serverTrust.map { URLCredential(trust: $0) }
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | return (.useCredential, cred)
39 | default:
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
BUILD FAILURE 6.2 wasm