Build Information
Failed to build VaultSwift, reference main (4624b3), with Swift 6.3 for Wasm on 20 Apr 2026 23:50:42 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1Build Log
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
| `- error: cannot find 'SecTrustSetExceptions' in scope
21 | return (.useCredential, URLCredential(trust: serverTrust))
22 | } else {
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:20:48: error: cannot find 'SecTrustCopyExceptions' in scope
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
| `- error: cannot find 'SecTrustCopyExceptions' in scope
21 | return (.useCredential, URLCredential(trust: serverTrust))
22 | } else {
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:21:22: error: cannot infer contextual base in reference to member 'useCredential'
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
21 | return (.useCredential, URLCredential(trust: serverTrust))
| `- error: cannot infer contextual base in reference to member 'useCredential'
22 | } else {
23 | return (.useCredential, nil)
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:21:37: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
21 | return (.useCredential, URLCredential(trust: serverTrust))
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
22 | } else {
23 | return (.useCredential, nil)
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:23:22: error: cannot infer contextual base in reference to member 'useCredential'
21 | return (.useCredential, URLCredential(trust: serverTrust))
22 | } else {
23 | return (.useCredential, nil)
| `- error: cannot infer contextual base in reference to member 'useCredential'
24 | }
25 | }
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/VaultClient.swift:101:30: error: cannot find 'URLRequest' in scope
99 | }
100 |
101 | var urlRequest = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData)
| `- error: cannot find 'URLRequest' in scope
102 | urlRequest.httpMethod = httpMethod.rawValue
103 |
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/VaultClient.swift:101:65: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
99 | }
100 |
101 | var urlRequest = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData)
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
102 | urlRequest.httpMethod = httpMethod.rawValue
103 |
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/VaultClient.swift:127:64: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
125 | urlRequest.addValue("true", forHTTPHeaderField: "X-Vault-Request")
126 |
127 | let (response, urlResponse) = try await URLSession.shared.data(for: urlRequest, delegate: TrustAllCertsDelegate())
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
128 |
129 | guard let urlResponse = urlResponse as? HTTPURLResponse else {
[240/256] Compiling VaultSwift RequestHeaderList_SystemBackend.swift
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:3:46: error: cannot find type 'URLSessionDelegate' in scope
1 | import Foundation
2 |
3 | final class TrustAllCertsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate, Sendable {
| `- error: cannot find type 'URLSessionDelegate' in scope
4 | /// Handles the URL session's authentication challenge.
5 | ///
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:3:66: error: cannot find type 'URLSessionTaskDelegate' in scope
1 | import Foundation
2 |
3 | final class TrustAllCertsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate, Sendable {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
4 | /// Handles the URL session's authentication challenge.
5 | ///
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:10:107: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
8 | /// - challenge: The authentication challenge.
9 | /// - Returns: A tuple containing the disposition and URL credential.
10 | func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
11 | Self.didReceiveChallenge(challenge: challenge)
12 | }
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:10:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | /// - challenge: The authentication challenge.
9 | /// - Returns: A tuple containing the disposition and URL credential.
10 | func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | Self.didReceiveChallenge(challenge: challenge)
12 | }
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/VaultSwift/Utilities/TrustAllCertsDelegate.swift:10:58: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | /// - challenge: The authentication challenge.
9 | /// - Returns: A tuple containing the disposition and URL credential.
10 | func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | Self.didReceiveChallenge(challenge: challenge)
12 | }
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/VaultSwift/Utilities/TrustAllCertsDelegate.swift:18:91: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
16 | /// - Parameter challenge: The authentication challenge.
17 | /// - Returns: A tuple containing the disposition and URL credential.
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:18:48: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | /// - Parameter challenge: The authentication challenge.
17 | /// - Returns: A tuple containing the disposition and URL credential.
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
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/VaultSwift/Utilities/TrustAllCertsDelegate.swift:19:40: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
17 | /// - Returns: A tuple containing the disposition and URL credential.
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
21 | return (.useCredential, URLCredential(trust: serverTrust))
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:20:13: error: cannot find 'SecTrustSetExceptions' in scope
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
| `- error: cannot find 'SecTrustSetExceptions' in scope
21 | return (.useCredential, URLCredential(trust: serverTrust))
22 | } else {
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:20:48: error: cannot find 'SecTrustCopyExceptions' in scope
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
| `- error: cannot find 'SecTrustCopyExceptions' in scope
21 | return (.useCredential, URLCredential(trust: serverTrust))
22 | } else {
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:21:22: error: cannot infer contextual base in reference to member 'useCredential'
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
21 | return (.useCredential, URLCredential(trust: serverTrust))
| `- error: cannot infer contextual base in reference to member 'useCredential'
22 | } else {
23 | return (.useCredential, nil)
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:21:37: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
21 | return (.useCredential, URLCredential(trust: serverTrust))
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
22 | } else {
23 | return (.useCredential, nil)
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:23:22: error: cannot infer contextual base in reference to member 'useCredential'
21 | return (.useCredential, URLCredential(trust: serverTrust))
22 | } else {
23 | return (.useCredential, nil)
| `- error: cannot infer contextual base in reference to member 'useCredential'
24 | }
25 | }
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/VaultClient.swift:101:30: error: cannot find 'URLRequest' in scope
99 | }
100 |
101 | var urlRequest = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData)
| `- error: cannot find 'URLRequest' in scope
102 | urlRequest.httpMethod = httpMethod.rawValue
103 |
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/VaultClient.swift:101:65: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
99 | }
100 |
101 | var urlRequest = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData)
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
102 | urlRequest.httpMethod = httpMethod.rawValue
103 |
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/VaultClient.swift:127:64: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
125 | urlRequest.addValue("true", forHTTPHeaderField: "X-Vault-Request")
126 |
127 | let (response, urlResponse) = try await URLSession.shared.data(for: urlRequest, delegate: TrustAllCertsDelegate())
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
128 |
129 | guard let urlResponse = urlResponse as? HTTPURLResponse else {
[241/256] Compiling VaultSwift RequestHeader_SystemBackend.swift
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:3:46: error: cannot find type 'URLSessionDelegate' in scope
1 | import Foundation
2 |
3 | final class TrustAllCertsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate, Sendable {
| `- error: cannot find type 'URLSessionDelegate' in scope
4 | /// Handles the URL session's authentication challenge.
5 | ///
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:3:66: error: cannot find type 'URLSessionTaskDelegate' in scope
1 | import Foundation
2 |
3 | final class TrustAllCertsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate, Sendable {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
4 | /// Handles the URL session's authentication challenge.
5 | ///
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:10:107: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
8 | /// - challenge: The authentication challenge.
9 | /// - Returns: A tuple containing the disposition and URL credential.
10 | func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
11 | Self.didReceiveChallenge(challenge: challenge)
12 | }
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:10:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | /// - challenge: The authentication challenge.
9 | /// - Returns: A tuple containing the disposition and URL credential.
10 | func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | Self.didReceiveChallenge(challenge: challenge)
12 | }
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/VaultSwift/Utilities/TrustAllCertsDelegate.swift:10:58: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | /// - challenge: The authentication challenge.
9 | /// - Returns: A tuple containing the disposition and URL credential.
10 | func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | Self.didReceiveChallenge(challenge: challenge)
12 | }
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/VaultSwift/Utilities/TrustAllCertsDelegate.swift:18:91: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
16 | /// - Parameter challenge: The authentication challenge.
17 | /// - Returns: A tuple containing the disposition and URL credential.
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:18:48: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | /// - Parameter challenge: The authentication challenge.
17 | /// - Returns: A tuple containing the disposition and URL credential.
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
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/VaultSwift/Utilities/TrustAllCertsDelegate.swift:19:40: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
17 | /// - Returns: A tuple containing the disposition and URL credential.
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
21 | return (.useCredential, URLCredential(trust: serverTrust))
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:20:13: error: cannot find 'SecTrustSetExceptions' in scope
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
| `- error: cannot find 'SecTrustSetExceptions' in scope
21 | return (.useCredential, URLCredential(trust: serverTrust))
22 | } else {
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:20:48: error: cannot find 'SecTrustCopyExceptions' in scope
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
| `- error: cannot find 'SecTrustCopyExceptions' in scope
21 | return (.useCredential, URLCredential(trust: serverTrust))
22 | } else {
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:21:22: error: cannot infer contextual base in reference to member 'useCredential'
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
21 | return (.useCredential, URLCredential(trust: serverTrust))
| `- error: cannot infer contextual base in reference to member 'useCredential'
22 | } else {
23 | return (.useCredential, nil)
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:21:37: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
21 | return (.useCredential, URLCredential(trust: serverTrust))
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
22 | } else {
23 | return (.useCredential, nil)
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:23:22: error: cannot infer contextual base in reference to member 'useCredential'
21 | return (.useCredential, URLCredential(trust: serverTrust))
22 | } else {
23 | return (.useCredential, nil)
| `- error: cannot infer contextual base in reference to member 'useCredential'
24 | }
25 | }
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/VaultClient.swift:101:30: error: cannot find 'URLRequest' in scope
99 | }
100 |
101 | var urlRequest = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData)
| `- error: cannot find 'URLRequest' in scope
102 | urlRequest.httpMethod = httpMethod.rawValue
103 |
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/VaultClient.swift:101:65: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
99 | }
100 |
101 | var urlRequest = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData)
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
102 | urlRequest.httpMethod = httpMethod.rawValue
103 |
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/VaultClient.swift:127:64: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
125 | urlRequest.addValue("true", forHTTPHeaderField: "X-Vault-Request")
126 |
127 | let (response, urlResponse) = try await URLSession.shared.data(for: urlRequest, delegate: TrustAllCertsDelegate())
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
128 |
129 | guard let urlResponse = urlResponse as? HTTPURLResponse else {
[242/256] Compiling VaultSwift RootTokenGenerationStatus_SystemBackend.swift
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:3:46: error: cannot find type 'URLSessionDelegate' in scope
1 | import Foundation
2 |
3 | final class TrustAllCertsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate, Sendable {
| `- error: cannot find type 'URLSessionDelegate' in scope
4 | /// Handles the URL session's authentication challenge.
5 | ///
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:3:66: error: cannot find type 'URLSessionTaskDelegate' in scope
1 | import Foundation
2 |
3 | final class TrustAllCertsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate, Sendable {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
4 | /// Handles the URL session's authentication challenge.
5 | ///
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:10:107: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
8 | /// - challenge: The authentication challenge.
9 | /// - Returns: A tuple containing the disposition and URL credential.
10 | func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
11 | Self.didReceiveChallenge(challenge: challenge)
12 | }
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:10:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | /// - challenge: The authentication challenge.
9 | /// - Returns: A tuple containing the disposition and URL credential.
10 | func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | Self.didReceiveChallenge(challenge: challenge)
12 | }
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/VaultSwift/Utilities/TrustAllCertsDelegate.swift:10:58: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | /// - challenge: The authentication challenge.
9 | /// - Returns: A tuple containing the disposition and URL credential.
10 | func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | Self.didReceiveChallenge(challenge: challenge)
12 | }
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/VaultSwift/Utilities/TrustAllCertsDelegate.swift:18:91: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
16 | /// - Parameter challenge: The authentication challenge.
17 | /// - Returns: A tuple containing the disposition and URL credential.
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:18:48: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | /// - Parameter challenge: The authentication challenge.
17 | /// - Returns: A tuple containing the disposition and URL credential.
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
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/VaultSwift/Utilities/TrustAllCertsDelegate.swift:19:40: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
17 | /// - Returns: A tuple containing the disposition and URL credential.
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
21 | return (.useCredential, URLCredential(trust: serverTrust))
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:20:13: error: cannot find 'SecTrustSetExceptions' in scope
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
| `- error: cannot find 'SecTrustSetExceptions' in scope
21 | return (.useCredential, URLCredential(trust: serverTrust))
22 | } else {
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:20:48: error: cannot find 'SecTrustCopyExceptions' in scope
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
| `- error: cannot find 'SecTrustCopyExceptions' in scope
21 | return (.useCredential, URLCredential(trust: serverTrust))
22 | } else {
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:21:22: error: cannot infer contextual base in reference to member 'useCredential'
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
21 | return (.useCredential, URLCredential(trust: serverTrust))
| `- error: cannot infer contextual base in reference to member 'useCredential'
22 | } else {
23 | return (.useCredential, nil)
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:21:37: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
21 | return (.useCredential, URLCredential(trust: serverTrust))
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
22 | } else {
23 | return (.useCredential, nil)
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:23:22: error: cannot infer contextual base in reference to member 'useCredential'
21 | return (.useCredential, URLCredential(trust: serverTrust))
22 | } else {
23 | return (.useCredential, nil)
| `- error: cannot infer contextual base in reference to member 'useCredential'
24 | }
25 | }
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/VaultClient.swift:101:30: error: cannot find 'URLRequest' in scope
99 | }
100 |
101 | var urlRequest = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData)
| `- error: cannot find 'URLRequest' in scope
102 | urlRequest.httpMethod = httpMethod.rawValue
103 |
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/VaultClient.swift:101:65: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
99 | }
100 |
101 | var urlRequest = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData)
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
102 | urlRequest.httpMethod = httpMethod.rawValue
103 |
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/VaultClient.swift:127:64: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
125 | urlRequest.addValue("true", forHTTPHeaderField: "X-Vault-Request")
126 |
127 | let (response, urlResponse) = try await URLSession.shared.data(for: urlRequest, delegate: TrustAllCertsDelegate())
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
128 |
129 | guard let urlResponse = urlResponse as? HTTPURLResponse else {
[243/256] Compiling VaultSwift SealStatus_SystemBackend.swift
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:3:46: error: cannot find type 'URLSessionDelegate' in scope
1 | import Foundation
2 |
3 | final class TrustAllCertsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate, Sendable {
| `- error: cannot find type 'URLSessionDelegate' in scope
4 | /// Handles the URL session's authentication challenge.
5 | ///
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:3:66: error: cannot find type 'URLSessionTaskDelegate' in scope
1 | import Foundation
2 |
3 | final class TrustAllCertsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate, Sendable {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
4 | /// Handles the URL session's authentication challenge.
5 | ///
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:10:107: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
8 | /// - challenge: The authentication challenge.
9 | /// - Returns: A tuple containing the disposition and URL credential.
10 | func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
11 | Self.didReceiveChallenge(challenge: challenge)
12 | }
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:10:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | /// - challenge: The authentication challenge.
9 | /// - Returns: A tuple containing the disposition and URL credential.
10 | func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | Self.didReceiveChallenge(challenge: challenge)
12 | }
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/VaultSwift/Utilities/TrustAllCertsDelegate.swift:10:58: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | /// - challenge: The authentication challenge.
9 | /// - Returns: A tuple containing the disposition and URL credential.
10 | func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | Self.didReceiveChallenge(challenge: challenge)
12 | }
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/VaultSwift/Utilities/TrustAllCertsDelegate.swift:18:91: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
16 | /// - Parameter challenge: The authentication challenge.
17 | /// - Returns: A tuple containing the disposition and URL credential.
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:18:48: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | /// - Parameter challenge: The authentication challenge.
17 | /// - Returns: A tuple containing the disposition and URL credential.
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
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/VaultSwift/Utilities/TrustAllCertsDelegate.swift:19:40: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
17 | /// - Returns: A tuple containing the disposition and URL credential.
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
21 | return (.useCredential, URLCredential(trust: serverTrust))
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:20:13: error: cannot find 'SecTrustSetExceptions' in scope
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
| `- error: cannot find 'SecTrustSetExceptions' in scope
21 | return (.useCredential, URLCredential(trust: serverTrust))
22 | } else {
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:20:48: error: cannot find 'SecTrustCopyExceptions' in scope
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
| `- error: cannot find 'SecTrustCopyExceptions' in scope
21 | return (.useCredential, URLCredential(trust: serverTrust))
22 | } else {
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:21:22: error: cannot infer contextual base in reference to member 'useCredential'
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
21 | return (.useCredential, URLCredential(trust: serverTrust))
| `- error: cannot infer contextual base in reference to member 'useCredential'
22 | } else {
23 | return (.useCredential, nil)
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:21:37: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
21 | return (.useCredential, URLCredential(trust: serverTrust))
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
22 | } else {
23 | return (.useCredential, nil)
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:23:22: error: cannot infer contextual base in reference to member 'useCredential'
21 | return (.useCredential, URLCredential(trust: serverTrust))
22 | } else {
23 | return (.useCredential, nil)
| `- error: cannot infer contextual base in reference to member 'useCredential'
24 | }
25 | }
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/VaultClient.swift:101:30: error: cannot find 'URLRequest' in scope
99 | }
100 |
101 | var urlRequest = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData)
| `- error: cannot find 'URLRequest' in scope
102 | urlRequest.httpMethod = httpMethod.rawValue
103 |
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/VaultClient.swift:101:65: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
99 | }
100 |
101 | var urlRequest = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData)
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
102 | urlRequest.httpMethod = httpMethod.rawValue
103 |
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/VaultClient.swift:127:64: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
125 | urlRequest.addValue("true", forHTTPHeaderField: "X-Vault-Request")
126 |
127 | let (response, urlResponse) = try await URLSession.shared.data(for: urlRequest, delegate: TrustAllCertsDelegate())
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
128 |
129 | guard let urlResponse = urlResponse as? HTTPURLResponse else {
[244/256] Compiling VaultSwift SecretsEngine_SystemBackend.swift
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:3:46: error: cannot find type 'URLSessionDelegate' in scope
1 | import Foundation
2 |
3 | final class TrustAllCertsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate, Sendable {
| `- error: cannot find type 'URLSessionDelegate' in scope
4 | /// Handles the URL session's authentication challenge.
5 | ///
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:3:66: error: cannot find type 'URLSessionTaskDelegate' in scope
1 | import Foundation
2 |
3 | final class TrustAllCertsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate, Sendable {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
4 | /// Handles the URL session's authentication challenge.
5 | ///
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:10:107: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
8 | /// - challenge: The authentication challenge.
9 | /// - Returns: A tuple containing the disposition and URL credential.
10 | func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
11 | Self.didReceiveChallenge(challenge: challenge)
12 | }
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:10:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | /// - challenge: The authentication challenge.
9 | /// - Returns: A tuple containing the disposition and URL credential.
10 | func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | Self.didReceiveChallenge(challenge: challenge)
12 | }
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/VaultSwift/Utilities/TrustAllCertsDelegate.swift:10:58: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | /// - challenge: The authentication challenge.
9 | /// - Returns: A tuple containing the disposition and URL credential.
10 | func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | Self.didReceiveChallenge(challenge: challenge)
12 | }
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/VaultSwift/Utilities/TrustAllCertsDelegate.swift:18:91: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
16 | /// - Parameter challenge: The authentication challenge.
17 | /// - Returns: A tuple containing the disposition and URL credential.
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:18:48: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | /// - Parameter challenge: The authentication challenge.
17 | /// - Returns: A tuple containing the disposition and URL credential.
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
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/VaultSwift/Utilities/TrustAllCertsDelegate.swift:19:40: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
17 | /// - Returns: A tuple containing the disposition and URL credential.
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
21 | return (.useCredential, URLCredential(trust: serverTrust))
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:20:13: error: cannot find 'SecTrustSetExceptions' in scope
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
| `- error: cannot find 'SecTrustSetExceptions' in scope
21 | return (.useCredential, URLCredential(trust: serverTrust))
22 | } else {
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:20:48: error: cannot find 'SecTrustCopyExceptions' in scope
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
| `- error: cannot find 'SecTrustCopyExceptions' in scope
21 | return (.useCredential, URLCredential(trust: serverTrust))
22 | } else {
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:21:22: error: cannot infer contextual base in reference to member 'useCredential'
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
21 | return (.useCredential, URLCredential(trust: serverTrust))
| `- error: cannot infer contextual base in reference to member 'useCredential'
22 | } else {
23 | return (.useCredential, nil)
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:21:37: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
21 | return (.useCredential, URLCredential(trust: serverTrust))
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
22 | } else {
23 | return (.useCredential, nil)
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:23:22: error: cannot infer contextual base in reference to member 'useCredential'
21 | return (.useCredential, URLCredential(trust: serverTrust))
22 | } else {
23 | return (.useCredential, nil)
| `- error: cannot infer contextual base in reference to member 'useCredential'
24 | }
25 | }
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/VaultClient.swift:101:30: error: cannot find 'URLRequest' in scope
99 | }
100 |
101 | var urlRequest = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData)
| `- error: cannot find 'URLRequest' in scope
102 | urlRequest.httpMethod = httpMethod.rawValue
103 |
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/VaultClient.swift:101:65: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
99 | }
100 |
101 | var urlRequest = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData)
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
102 | urlRequest.httpMethod = httpMethod.rawValue
103 |
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/VaultClient.swift:127:64: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
125 | urlRequest.addValue("true", forHTTPHeaderField: "X-Vault-Request")
126 |
127 | let (response, urlResponse) = try await URLSession.shared.data(for: urlRequest, delegate: TrustAllCertsDelegate())
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
128 |
129 | guard let urlResponse = urlResponse as? HTTPURLResponse else {
[245/256] Compiling VaultSwift TokenWrapInfo_SystemBackend.swift
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:3:46: error: cannot find type 'URLSessionDelegate' in scope
1 | import Foundation
2 |
3 | final class TrustAllCertsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate, Sendable {
| `- error: cannot find type 'URLSessionDelegate' in scope
4 | /// Handles the URL session's authentication challenge.
5 | ///
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:3:66: error: cannot find type 'URLSessionTaskDelegate' in scope
1 | import Foundation
2 |
3 | final class TrustAllCertsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate, Sendable {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
4 | /// Handles the URL session's authentication challenge.
5 | ///
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:10:107: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
8 | /// - challenge: The authentication challenge.
9 | /// - Returns: A tuple containing the disposition and URL credential.
10 | func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
11 | Self.didReceiveChallenge(challenge: challenge)
12 | }
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:10:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | /// - challenge: The authentication challenge.
9 | /// - Returns: A tuple containing the disposition and URL credential.
10 | func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | Self.didReceiveChallenge(challenge: challenge)
12 | }
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/VaultSwift/Utilities/TrustAllCertsDelegate.swift:10:58: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | /// - challenge: The authentication challenge.
9 | /// - Returns: A tuple containing the disposition and URL credential.
10 | func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | Self.didReceiveChallenge(challenge: challenge)
12 | }
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/VaultSwift/Utilities/TrustAllCertsDelegate.swift:18:91: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
16 | /// - Parameter challenge: The authentication challenge.
17 | /// - Returns: A tuple containing the disposition and URL credential.
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:18:48: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | /// - Parameter challenge: The authentication challenge.
17 | /// - Returns: A tuple containing the disposition and URL credential.
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
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/VaultSwift/Utilities/TrustAllCertsDelegate.swift:19:40: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
17 | /// - Returns: A tuple containing the disposition and URL credential.
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
21 | return (.useCredential, URLCredential(trust: serverTrust))
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:20:13: error: cannot find 'SecTrustSetExceptions' in scope
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
| `- error: cannot find 'SecTrustSetExceptions' in scope
21 | return (.useCredential, URLCredential(trust: serverTrust))
22 | } else {
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:20:48: error: cannot find 'SecTrustCopyExceptions' in scope
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
| `- error: cannot find 'SecTrustCopyExceptions' in scope
21 | return (.useCredential, URLCredential(trust: serverTrust))
22 | } else {
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:21:22: error: cannot infer contextual base in reference to member 'useCredential'
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
21 | return (.useCredential, URLCredential(trust: serverTrust))
| `- error: cannot infer contextual base in reference to member 'useCredential'
22 | } else {
23 | return (.useCredential, nil)
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:21:37: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
21 | return (.useCredential, URLCredential(trust: serverTrust))
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
22 | } else {
23 | return (.useCredential, nil)
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:23:22: error: cannot infer contextual base in reference to member 'useCredential'
21 | return (.useCredential, URLCredential(trust: serverTrust))
22 | } else {
23 | return (.useCredential, nil)
| `- error: cannot infer contextual base in reference to member 'useCredential'
24 | }
25 | }
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/VaultClient.swift:101:30: error: cannot find 'URLRequest' in scope
99 | }
100 |
101 | var urlRequest = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData)
| `- error: cannot find 'URLRequest' in scope
102 | urlRequest.httpMethod = httpMethod.rawValue
103 |
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/VaultClient.swift:101:65: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
99 | }
100 |
101 | var urlRequest = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData)
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
102 | urlRequest.httpMethod = httpMethod.rawValue
103 |
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/VaultClient.swift:127:64: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
125 | urlRequest.addValue("true", forHTTPHeaderField: "X-Vault-Request")
126 |
127 | let (response, urlResponse) = try await URLSession.shared.data(for: urlRequest, delegate: TrustAllCertsDelegate())
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
128 |
129 | guard let urlResponse = urlResponse as? HTTPURLResponse else {
[246/256] Compiling VaultSwift Plugins_SystemBackend.swift
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:3:46: error: cannot find type 'URLSessionDelegate' in scope
1 | import Foundation
2 |
3 | final class TrustAllCertsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate, Sendable {
| `- error: cannot find type 'URLSessionDelegate' in scope
4 | /// Handles the URL session's authentication challenge.
5 | ///
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:3:66: error: cannot find type 'URLSessionTaskDelegate' in scope
1 | import Foundation
2 |
3 | final class TrustAllCertsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate, Sendable {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
4 | /// Handles the URL session's authentication challenge.
5 | ///
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:10:107: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
8 | /// - challenge: The authentication challenge.
9 | /// - Returns: A tuple containing the disposition and URL credential.
10 | func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
11 | Self.didReceiveChallenge(challenge: challenge)
12 | }
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:10:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | /// - challenge: The authentication challenge.
9 | /// - Returns: A tuple containing the disposition and URL credential.
10 | func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | Self.didReceiveChallenge(challenge: challenge)
12 | }
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/VaultSwift/Utilities/TrustAllCertsDelegate.swift:10:58: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | /// - challenge: The authentication challenge.
9 | /// - Returns: A tuple containing the disposition and URL credential.
10 | func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | Self.didReceiveChallenge(challenge: challenge)
12 | }
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/VaultSwift/Utilities/TrustAllCertsDelegate.swift:18:91: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
16 | /// - Parameter challenge: The authentication challenge.
17 | /// - Returns: A tuple containing the disposition and URL credential.
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:18:48: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | /// - Parameter challenge: The authentication challenge.
17 | /// - Returns: A tuple containing the disposition and URL credential.
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
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/VaultSwift/Utilities/TrustAllCertsDelegate.swift:19:40: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
17 | /// - Returns: A tuple containing the disposition and URL credential.
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
21 | return (.useCredential, URLCredential(trust: serverTrust))
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:20:13: error: cannot find 'SecTrustSetExceptions' in scope
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
| `- error: cannot find 'SecTrustSetExceptions' in scope
21 | return (.useCredential, URLCredential(trust: serverTrust))
22 | } else {
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:20:48: error: cannot find 'SecTrustCopyExceptions' in scope
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
| `- error: cannot find 'SecTrustCopyExceptions' in scope
21 | return (.useCredential, URLCredential(trust: serverTrust))
22 | } else {
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:21:22: error: cannot infer contextual base in reference to member 'useCredential'
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
21 | return (.useCredential, URLCredential(trust: serverTrust))
| `- error: cannot infer contextual base in reference to member 'useCredential'
22 | } else {
23 | return (.useCredential, nil)
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:21:37: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
21 | return (.useCredential, URLCredential(trust: serverTrust))
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
22 | } else {
23 | return (.useCredential, nil)
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:23:22: error: cannot infer contextual base in reference to member 'useCredential'
21 | return (.useCredential, URLCredential(trust: serverTrust))
22 | } else {
23 | return (.useCredential, nil)
| `- error: cannot infer contextual base in reference to member 'useCredential'
24 | }
25 | }
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/VaultClient.swift:101:30: error: cannot find 'URLRequest' in scope
99 | }
100 |
101 | var urlRequest = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData)
| `- error: cannot find 'URLRequest' in scope
102 | urlRequest.httpMethod = httpMethod.rawValue
103 |
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/VaultClient.swift:101:65: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
99 | }
100 |
101 | var urlRequest = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData)
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
102 | urlRequest.httpMethod = httpMethod.rawValue
103 |
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/VaultClient.swift:127:64: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
125 | urlRequest.addValue("true", forHTTPHeaderField: "X-Vault-Request")
126 |
127 | let (response, urlResponse) = try await URLSession.shared.data(for: urlRequest, delegate: TrustAllCertsDelegate())
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
128 |
129 | guard let urlResponse = urlResponse as? HTTPURLResponse else {
[247/256] Compiling VaultSwift BackendClient.swift
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:3:46: error: cannot find type 'URLSessionDelegate' in scope
1 | import Foundation
2 |
3 | final class TrustAllCertsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate, Sendable {
| `- error: cannot find type 'URLSessionDelegate' in scope
4 | /// Handles the URL session's authentication challenge.
5 | ///
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:3:66: error: cannot find type 'URLSessionTaskDelegate' in scope
1 | import Foundation
2 |
3 | final class TrustAllCertsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate, Sendable {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
4 | /// Handles the URL session's authentication challenge.
5 | ///
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:10:107: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
8 | /// - challenge: The authentication challenge.
9 | /// - Returns: A tuple containing the disposition and URL credential.
10 | func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
11 | Self.didReceiveChallenge(challenge: challenge)
12 | }
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:10:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | /// - challenge: The authentication challenge.
9 | /// - Returns: A tuple containing the disposition and URL credential.
10 | func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | Self.didReceiveChallenge(challenge: challenge)
12 | }
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/VaultSwift/Utilities/TrustAllCertsDelegate.swift:10:58: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | /// - challenge: The authentication challenge.
9 | /// - Returns: A tuple containing the disposition and URL credential.
10 | func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | Self.didReceiveChallenge(challenge: challenge)
12 | }
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/VaultSwift/Utilities/TrustAllCertsDelegate.swift:18:91: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
16 | /// - Parameter challenge: The authentication challenge.
17 | /// - Returns: A tuple containing the disposition and URL credential.
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:18:48: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | /// - Parameter challenge: The authentication challenge.
17 | /// - Returns: A tuple containing the disposition and URL credential.
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
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/VaultSwift/Utilities/TrustAllCertsDelegate.swift:19:40: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
17 | /// - Returns: A tuple containing the disposition and URL credential.
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
21 | return (.useCredential, URLCredential(trust: serverTrust))
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:20:13: error: cannot find 'SecTrustSetExceptions' in scope
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
| `- error: cannot find 'SecTrustSetExceptions' in scope
21 | return (.useCredential, URLCredential(trust: serverTrust))
22 | } else {
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:20:48: error: cannot find 'SecTrustCopyExceptions' in scope
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
| `- error: cannot find 'SecTrustCopyExceptions' in scope
21 | return (.useCredential, URLCredential(trust: serverTrust))
22 | } else {
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:21:22: error: cannot infer contextual base in reference to member 'useCredential'
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
21 | return (.useCredential, URLCredential(trust: serverTrust))
| `- error: cannot infer contextual base in reference to member 'useCredential'
22 | } else {
23 | return (.useCredential, nil)
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:21:37: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
21 | return (.useCredential, URLCredential(trust: serverTrust))
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
22 | } else {
23 | return (.useCredential, nil)
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:23:22: error: cannot infer contextual base in reference to member 'useCredential'
21 | return (.useCredential, URLCredential(trust: serverTrust))
22 | } else {
23 | return (.useCredential, nil)
| `- error: cannot infer contextual base in reference to member 'useCredential'
24 | }
25 | }
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/VaultClient.swift:101:30: error: cannot find 'URLRequest' in scope
99 | }
100 |
101 | var urlRequest = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData)
| `- error: cannot find 'URLRequest' in scope
102 | urlRequest.httpMethod = httpMethod.rawValue
103 |
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/VaultClient.swift:101:65: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
99 | }
100 |
101 | var urlRequest = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData)
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
102 | urlRequest.httpMethod = httpMethod.rawValue
103 |
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/VaultClient.swift:127:64: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
125 | urlRequest.addValue("true", forHTTPHeaderField: "X-Vault-Request")
126 |
127 | let (response, urlResponse) = try await URLSession.shared.data(for: urlRequest, delegate: TrustAllCertsDelegate())
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
128 |
129 | guard let urlResponse = urlResponse as? HTTPURLResponse else {
[248/256] Compiling VaultSwift Extensions.swift
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:3:46: error: cannot find type 'URLSessionDelegate' in scope
1 | import Foundation
2 |
3 | final class TrustAllCertsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate, Sendable {
| `- error: cannot find type 'URLSessionDelegate' in scope
4 | /// Handles the URL session's authentication challenge.
5 | ///
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:3:66: error: cannot find type 'URLSessionTaskDelegate' in scope
1 | import Foundation
2 |
3 | final class TrustAllCertsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate, Sendable {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
4 | /// Handles the URL session's authentication challenge.
5 | ///
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:10:107: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
8 | /// - challenge: The authentication challenge.
9 | /// - Returns: A tuple containing the disposition and URL credential.
10 | func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
11 | Self.didReceiveChallenge(challenge: challenge)
12 | }
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:10:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | /// - challenge: The authentication challenge.
9 | /// - Returns: A tuple containing the disposition and URL credential.
10 | func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | Self.didReceiveChallenge(challenge: challenge)
12 | }
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/VaultSwift/Utilities/TrustAllCertsDelegate.swift:10:58: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | /// - challenge: The authentication challenge.
9 | /// - Returns: A tuple containing the disposition and URL credential.
10 | func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | Self.didReceiveChallenge(challenge: challenge)
12 | }
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/VaultSwift/Utilities/TrustAllCertsDelegate.swift:18:91: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
16 | /// - Parameter challenge: The authentication challenge.
17 | /// - Returns: A tuple containing the disposition and URL credential.
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:18:48: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | /// - Parameter challenge: The authentication challenge.
17 | /// - Returns: A tuple containing the disposition and URL credential.
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
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/VaultSwift/Utilities/TrustAllCertsDelegate.swift:19:40: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
17 | /// - Returns: A tuple containing the disposition and URL credential.
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
21 | return (.useCredential, URLCredential(trust: serverTrust))
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:20:13: error: cannot find 'SecTrustSetExceptions' in scope
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
| `- error: cannot find 'SecTrustSetExceptions' in scope
21 | return (.useCredential, URLCredential(trust: serverTrust))
22 | } else {
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:20:48: error: cannot find 'SecTrustCopyExceptions' in scope
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
| `- error: cannot find 'SecTrustCopyExceptions' in scope
21 | return (.useCredential, URLCredential(trust: serverTrust))
22 | } else {
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:21:22: error: cannot infer contextual base in reference to member 'useCredential'
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
21 | return (.useCredential, URLCredential(trust: serverTrust))
| `- error: cannot infer contextual base in reference to member 'useCredential'
22 | } else {
23 | return (.useCredential, nil)
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:21:37: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
21 | return (.useCredential, URLCredential(trust: serverTrust))
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
22 | } else {
23 | return (.useCredential, nil)
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:23:22: error: cannot infer contextual base in reference to member 'useCredential'
21 | return (.useCredential, URLCredential(trust: serverTrust))
22 | } else {
23 | return (.useCredential, nil)
| `- error: cannot infer contextual base in reference to member 'useCredential'
24 | }
25 | }
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/VaultClient.swift:101:30: error: cannot find 'URLRequest' in scope
99 | }
100 |
101 | var urlRequest = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData)
| `- error: cannot find 'URLRequest' in scope
102 | urlRequest.httpMethod = httpMethod.rawValue
103 |
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/VaultClient.swift:101:65: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
99 | }
100 |
101 | var urlRequest = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData)
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
102 | urlRequest.httpMethod = httpMethod.rawValue
103 |
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/VaultClient.swift:127:64: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
125 | urlRequest.addValue("true", forHTTPHeaderField: "X-Vault-Request")
126 |
127 | let (response, urlResponse) = try await URLSession.shared.data(for: urlRequest, delegate: TrustAllCertsDelegate())
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
128 |
129 | guard let urlResponse = urlResponse as? HTTPURLResponse else {
[249/256] Compiling VaultSwift JSONAny.swift
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:3:46: error: cannot find type 'URLSessionDelegate' in scope
1 | import Foundation
2 |
3 | final class TrustAllCertsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate, Sendable {
| `- error: cannot find type 'URLSessionDelegate' in scope
4 | /// Handles the URL session's authentication challenge.
5 | ///
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:3:66: error: cannot find type 'URLSessionTaskDelegate' in scope
1 | import Foundation
2 |
3 | final class TrustAllCertsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate, Sendable {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
4 | /// Handles the URL session's authentication challenge.
5 | ///
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:10:107: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
8 | /// - challenge: The authentication challenge.
9 | /// - Returns: A tuple containing the disposition and URL credential.
10 | func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
11 | Self.didReceiveChallenge(challenge: challenge)
12 | }
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:10:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | /// - challenge: The authentication challenge.
9 | /// - Returns: A tuple containing the disposition and URL credential.
10 | func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | Self.didReceiveChallenge(challenge: challenge)
12 | }
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/VaultSwift/Utilities/TrustAllCertsDelegate.swift:10:58: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | /// - challenge: The authentication challenge.
9 | /// - Returns: A tuple containing the disposition and URL credential.
10 | func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | Self.didReceiveChallenge(challenge: challenge)
12 | }
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/VaultSwift/Utilities/TrustAllCertsDelegate.swift:18:91: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
16 | /// - Parameter challenge: The authentication challenge.
17 | /// - Returns: A tuple containing the disposition and URL credential.
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:18:48: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | /// - Parameter challenge: The authentication challenge.
17 | /// - Returns: A tuple containing the disposition and URL credential.
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
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/VaultSwift/Utilities/TrustAllCertsDelegate.swift:19:40: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
17 | /// - Returns: A tuple containing the disposition and URL credential.
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
21 | return (.useCredential, URLCredential(trust: serverTrust))
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:20:13: error: cannot find 'SecTrustSetExceptions' in scope
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
| `- error: cannot find 'SecTrustSetExceptions' in scope
21 | return (.useCredential, URLCredential(trust: serverTrust))
22 | } else {
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:20:48: error: cannot find 'SecTrustCopyExceptions' in scope
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
| `- error: cannot find 'SecTrustCopyExceptions' in scope
21 | return (.useCredential, URLCredential(trust: serverTrust))
22 | } else {
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:21:22: error: cannot infer contextual base in reference to member 'useCredential'
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
21 | return (.useCredential, URLCredential(trust: serverTrust))
| `- error: cannot infer contextual base in reference to member 'useCredential'
22 | } else {
23 | return (.useCredential, nil)
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:21:37: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
21 | return (.useCredential, URLCredential(trust: serverTrust))
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
22 | } else {
23 | return (.useCredential, nil)
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:23:22: error: cannot infer contextual base in reference to member 'useCredential'
21 | return (.useCredential, URLCredential(trust: serverTrust))
22 | } else {
23 | return (.useCredential, nil)
| `- error: cannot infer contextual base in reference to member 'useCredential'
24 | }
25 | }
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/VaultClient.swift:101:30: error: cannot find 'URLRequest' in scope
99 | }
100 |
101 | var urlRequest = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData)
| `- error: cannot find 'URLRequest' in scope
102 | urlRequest.httpMethod = httpMethod.rawValue
103 |
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/VaultClient.swift:101:65: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
99 | }
100 |
101 | var urlRequest = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData)
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
102 | urlRequest.httpMethod = httpMethod.rawValue
103 |
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/VaultClient.swift:127:64: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
125 | urlRequest.addValue("true", forHTTPHeaderField: "X-Vault-Request")
126 |
127 | let (response, urlResponse) = try await URLSession.shared.data(for: urlRequest, delegate: TrustAllCertsDelegate())
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
128 |
129 | guard let urlResponse = urlResponse as? HTTPURLResponse else {
[250/256] Compiling VaultSwift Keys.swift
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:3:46: error: cannot find type 'URLSessionDelegate' in scope
1 | import Foundation
2 |
3 | final class TrustAllCertsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate, Sendable {
| `- error: cannot find type 'URLSessionDelegate' in scope
4 | /// Handles the URL session's authentication challenge.
5 | ///
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:3:66: error: cannot find type 'URLSessionTaskDelegate' in scope
1 | import Foundation
2 |
3 | final class TrustAllCertsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate, Sendable {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
4 | /// Handles the URL session's authentication challenge.
5 | ///
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:10:107: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
8 | /// - challenge: The authentication challenge.
9 | /// - Returns: A tuple containing the disposition and URL credential.
10 | func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
11 | Self.didReceiveChallenge(challenge: challenge)
12 | }
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:10:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | /// - challenge: The authentication challenge.
9 | /// - Returns: A tuple containing the disposition and URL credential.
10 | func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | Self.didReceiveChallenge(challenge: challenge)
12 | }
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/VaultSwift/Utilities/TrustAllCertsDelegate.swift:10:58: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | /// - challenge: The authentication challenge.
9 | /// - Returns: A tuple containing the disposition and URL credential.
10 | func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | Self.didReceiveChallenge(challenge: challenge)
12 | }
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/VaultSwift/Utilities/TrustAllCertsDelegate.swift:18:91: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
16 | /// - Parameter challenge: The authentication challenge.
17 | /// - Returns: A tuple containing the disposition and URL credential.
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:18:48: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | /// - Parameter challenge: The authentication challenge.
17 | /// - Returns: A tuple containing the disposition and URL credential.
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
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/VaultSwift/Utilities/TrustAllCertsDelegate.swift:19:40: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
17 | /// - Returns: A tuple containing the disposition and URL credential.
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
21 | return (.useCredential, URLCredential(trust: serverTrust))
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:20:13: error: cannot find 'SecTrustSetExceptions' in scope
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
| `- error: cannot find 'SecTrustSetExceptions' in scope
21 | return (.useCredential, URLCredential(trust: serverTrust))
22 | } else {
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:20:48: error: cannot find 'SecTrustCopyExceptions' in scope
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
| `- error: cannot find 'SecTrustCopyExceptions' in scope
21 | return (.useCredential, URLCredential(trust: serverTrust))
22 | } else {
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:21:22: error: cannot infer contextual base in reference to member 'useCredential'
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
21 | return (.useCredential, URLCredential(trust: serverTrust))
| `- error: cannot infer contextual base in reference to member 'useCredential'
22 | } else {
23 | return (.useCredential, nil)
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:21:37: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
21 | return (.useCredential, URLCredential(trust: serverTrust))
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
22 | } else {
23 | return (.useCredential, nil)
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:23:22: error: cannot infer contextual base in reference to member 'useCredential'
21 | return (.useCredential, URLCredential(trust: serverTrust))
22 | } else {
23 | return (.useCredential, nil)
| `- error: cannot infer contextual base in reference to member 'useCredential'
24 | }
25 | }
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/VaultClient.swift:101:30: error: cannot find 'URLRequest' in scope
99 | }
100 |
101 | var urlRequest = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData)
| `- error: cannot find 'URLRequest' in scope
102 | urlRequest.httpMethod = httpMethod.rawValue
103 |
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/VaultClient.swift:101:65: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
99 | }
100 |
101 | var urlRequest = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData)
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
102 | urlRequest.httpMethod = httpMethod.rawValue
103 |
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/VaultClient.swift:127:64: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
125 | urlRequest.addValue("true", forHTTPHeaderField: "X-Vault-Request")
126 |
127 | let (response, urlResponse) = try await URLSession.shared.data(for: urlRequest, delegate: TrustAllCertsDelegate())
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
128 |
129 | guard let urlResponse = urlResponse as? HTTPURLResponse else {
[251/256] Compiling VaultSwift UserCredentials.swift
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:3:46: error: cannot find type 'URLSessionDelegate' in scope
1 | import Foundation
2 |
3 | final class TrustAllCertsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate, Sendable {
| `- error: cannot find type 'URLSessionDelegate' in scope
4 | /// Handles the URL session's authentication challenge.
5 | ///
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:3:66: error: cannot find type 'URLSessionTaskDelegate' in scope
1 | import Foundation
2 |
3 | final class TrustAllCertsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate, Sendable {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
4 | /// Handles the URL session's authentication challenge.
5 | ///
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:10:107: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
8 | /// - challenge: The authentication challenge.
9 | /// - Returns: A tuple containing the disposition and URL credential.
10 | func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
11 | Self.didReceiveChallenge(challenge: challenge)
12 | }
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:10:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | /// - challenge: The authentication challenge.
9 | /// - Returns: A tuple containing the disposition and URL credential.
10 | func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | Self.didReceiveChallenge(challenge: challenge)
12 | }
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/VaultSwift/Utilities/TrustAllCertsDelegate.swift:10:58: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | /// - challenge: The authentication challenge.
9 | /// - Returns: A tuple containing the disposition and URL credential.
10 | func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | Self.didReceiveChallenge(challenge: challenge)
12 | }
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/VaultSwift/Utilities/TrustAllCertsDelegate.swift:18:91: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
16 | /// - Parameter challenge: The authentication challenge.
17 | /// - Returns: A tuple containing the disposition and URL credential.
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:18:48: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | /// - Parameter challenge: The authentication challenge.
17 | /// - Returns: A tuple containing the disposition and URL credential.
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
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/VaultSwift/Utilities/TrustAllCertsDelegate.swift:19:40: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
17 | /// - Returns: A tuple containing the disposition and URL credential.
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
21 | return (.useCredential, URLCredential(trust: serverTrust))
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:20:13: error: cannot find 'SecTrustSetExceptions' in scope
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
| `- error: cannot find 'SecTrustSetExceptions' in scope
21 | return (.useCredential, URLCredential(trust: serverTrust))
22 | } else {
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:20:48: error: cannot find 'SecTrustCopyExceptions' in scope
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
| `- error: cannot find 'SecTrustCopyExceptions' in scope
21 | return (.useCredential, URLCredential(trust: serverTrust))
22 | } else {
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:21:22: error: cannot infer contextual base in reference to member 'useCredential'
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
21 | return (.useCredential, URLCredential(trust: serverTrust))
| `- error: cannot infer contextual base in reference to member 'useCredential'
22 | } else {
23 | return (.useCredential, nil)
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:21:37: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
21 | return (.useCredential, URLCredential(trust: serverTrust))
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
22 | } else {
23 | return (.useCredential, nil)
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:23:22: error: cannot infer contextual base in reference to member 'useCredential'
21 | return (.useCredential, URLCredential(trust: serverTrust))
22 | } else {
23 | return (.useCredential, nil)
| `- error: cannot infer contextual base in reference to member 'useCredential'
24 | }
25 | }
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/VaultClient.swift:101:30: error: cannot find 'URLRequest' in scope
99 | }
100 |
101 | var urlRequest = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData)
| `- error: cannot find 'URLRequest' in scope
102 | urlRequest.httpMethod = httpMethod.rawValue
103 |
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/VaultClient.swift:101:65: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
99 | }
100 |
101 | var urlRequest = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData)
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
102 | urlRequest.httpMethod = httpMethod.rawValue
103 |
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/VaultClient.swift:127:64: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
125 | urlRequest.addValue("true", forHTTPHeaderField: "X-Vault-Request")
126 |
127 | let (response, urlResponse) = try await URLSession.shared.data(for: urlRequest, delegate: TrustAllCertsDelegate())
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
128 |
129 | guard let urlResponse = urlResponse as? HTTPURLResponse else {
[252/256] Compiling VaultSwift VaultResponse.swift
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:3:46: error: cannot find type 'URLSessionDelegate' in scope
1 | import Foundation
2 |
3 | final class TrustAllCertsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate, Sendable {
| `- error: cannot find type 'URLSessionDelegate' in scope
4 | /// Handles the URL session's authentication challenge.
5 | ///
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:3:66: error: cannot find type 'URLSessionTaskDelegate' in scope
1 | import Foundation
2 |
3 | final class TrustAllCertsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate, Sendable {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
4 | /// Handles the URL session's authentication challenge.
5 | ///
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:10:107: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
8 | /// - challenge: The authentication challenge.
9 | /// - Returns: A tuple containing the disposition and URL credential.
10 | func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
11 | Self.didReceiveChallenge(challenge: challenge)
12 | }
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:10:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | /// - challenge: The authentication challenge.
9 | /// - Returns: A tuple containing the disposition and URL credential.
10 | func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | Self.didReceiveChallenge(challenge: challenge)
12 | }
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/VaultSwift/Utilities/TrustAllCertsDelegate.swift:10:58: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | /// - challenge: The authentication challenge.
9 | /// - Returns: A tuple containing the disposition and URL credential.
10 | func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | Self.didReceiveChallenge(challenge: challenge)
12 | }
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/VaultSwift/Utilities/TrustAllCertsDelegate.swift:18:91: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
16 | /// - Parameter challenge: The authentication challenge.
17 | /// - Returns: A tuple containing the disposition and URL credential.
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:18:48: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | /// - Parameter challenge: The authentication challenge.
17 | /// - Returns: A tuple containing the disposition and URL credential.
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
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/VaultSwift/Utilities/TrustAllCertsDelegate.swift:19:40: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
17 | /// - Returns: A tuple containing the disposition and URL credential.
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
21 | return (.useCredential, URLCredential(trust: serverTrust))
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:20:13: error: cannot find 'SecTrustSetExceptions' in scope
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
| `- error: cannot find 'SecTrustSetExceptions' in scope
21 | return (.useCredential, URLCredential(trust: serverTrust))
22 | } else {
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:20:48: error: cannot find 'SecTrustCopyExceptions' in scope
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
| `- error: cannot find 'SecTrustCopyExceptions' in scope
21 | return (.useCredential, URLCredential(trust: serverTrust))
22 | } else {
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:21:22: error: cannot infer contextual base in reference to member 'useCredential'
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
21 | return (.useCredential, URLCredential(trust: serverTrust))
| `- error: cannot infer contextual base in reference to member 'useCredential'
22 | } else {
23 | return (.useCredential, nil)
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:21:37: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
21 | return (.useCredential, URLCredential(trust: serverTrust))
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
22 | } else {
23 | return (.useCredential, nil)
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:23:22: error: cannot infer contextual base in reference to member 'useCredential'
21 | return (.useCredential, URLCredential(trust: serverTrust))
22 | } else {
23 | return (.useCredential, nil)
| `- error: cannot infer contextual base in reference to member 'useCredential'
24 | }
25 | }
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/VaultClient.swift:101:30: error: cannot find 'URLRequest' in scope
99 | }
100 |
101 | var urlRequest = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData)
| `- error: cannot find 'URLRequest' in scope
102 | urlRequest.httpMethod = httpMethod.rawValue
103 |
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/VaultClient.swift:101:65: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
99 | }
100 |
101 | var urlRequest = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData)
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
102 | urlRequest.httpMethod = httpMethod.rawValue
103 |
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/VaultClient.swift:127:64: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
125 | urlRequest.addValue("true", forHTTPHeaderField: "X-Vault-Request")
126 |
127 | let (response, urlResponse) = try await URLSession.shared.data(for: urlRequest, delegate: TrustAllCertsDelegate())
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
128 |
129 | guard let urlResponse = urlResponse as? HTTPURLResponse else {
[253/256] Compiling VaultSwift TrustAllCertsDelegate.swift
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:3:46: error: cannot find type 'URLSessionDelegate' in scope
1 | import Foundation
2 |
3 | final class TrustAllCertsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate, Sendable {
| `- error: cannot find type 'URLSessionDelegate' in scope
4 | /// Handles the URL session's authentication challenge.
5 | ///
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:3:66: error: cannot find type 'URLSessionTaskDelegate' in scope
1 | import Foundation
2 |
3 | final class TrustAllCertsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate, Sendable {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
4 | /// Handles the URL session's authentication challenge.
5 | ///
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:10:107: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
8 | /// - challenge: The authentication challenge.
9 | /// - Returns: A tuple containing the disposition and URL credential.
10 | func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
11 | Self.didReceiveChallenge(challenge: challenge)
12 | }
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:10:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | /// - challenge: The authentication challenge.
9 | /// - Returns: A tuple containing the disposition and URL credential.
10 | func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | Self.didReceiveChallenge(challenge: challenge)
12 | }
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/VaultSwift/Utilities/TrustAllCertsDelegate.swift:10:58: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | /// - challenge: The authentication challenge.
9 | /// - Returns: A tuple containing the disposition and URL credential.
10 | func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | Self.didReceiveChallenge(challenge: challenge)
12 | }
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/VaultSwift/Utilities/TrustAllCertsDelegate.swift:18:91: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
16 | /// - Parameter challenge: The authentication challenge.
17 | /// - Returns: A tuple containing the disposition and URL credential.
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:18:48: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | /// - Parameter challenge: The authentication challenge.
17 | /// - Returns: A tuple containing the disposition and URL credential.
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
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/VaultSwift/Utilities/TrustAllCertsDelegate.swift:19:40: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
17 | /// - Returns: A tuple containing the disposition and URL credential.
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
21 | return (.useCredential, URLCredential(trust: serverTrust))
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:20:13: error: cannot find 'SecTrustSetExceptions' in scope
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
| `- error: cannot find 'SecTrustSetExceptions' in scope
21 | return (.useCredential, URLCredential(trust: serverTrust))
22 | } else {
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:20:48: error: cannot find 'SecTrustCopyExceptions' in scope
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
| `- error: cannot find 'SecTrustCopyExceptions' in scope
21 | return (.useCredential, URLCredential(trust: serverTrust))
22 | } else {
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:21:22: error: cannot infer contextual base in reference to member 'useCredential'
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
21 | return (.useCredential, URLCredential(trust: serverTrust))
| `- error: cannot infer contextual base in reference to member 'useCredential'
22 | } else {
23 | return (.useCredential, nil)
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:21:37: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
21 | return (.useCredential, URLCredential(trust: serverTrust))
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
22 | } else {
23 | return (.useCredential, nil)
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:23:22: error: cannot infer contextual base in reference to member 'useCredential'
21 | return (.useCredential, URLCredential(trust: serverTrust))
22 | } else {
23 | return (.useCredential, nil)
| `- error: cannot infer contextual base in reference to member 'useCredential'
24 | }
25 | }
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/VaultClient.swift:101:30: error: cannot find 'URLRequest' in scope
99 | }
100 |
101 | var urlRequest = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData)
| `- error: cannot find 'URLRequest' in scope
102 | urlRequest.httpMethod = httpMethod.rawValue
103 |
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/VaultClient.swift:101:65: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
99 | }
100 |
101 | var urlRequest = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData)
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
102 | urlRequest.httpMethod = httpMethod.rawValue
103 |
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/VaultClient.swift:127:64: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
125 | urlRequest.addValue("true", forHTTPHeaderField: "X-Vault-Request")
126 |
127 | let (response, urlResponse) = try await URLSession.shared.data(for: urlRequest, delegate: TrustAllCertsDelegate())
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
128 |
129 | guard let urlResponse = urlResponse as? HTTPURLResponse else {
[254/256] Compiling VaultSwift VaultClient.swift
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:3:46: error: cannot find type 'URLSessionDelegate' in scope
1 | import Foundation
2 |
3 | final class TrustAllCertsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate, Sendable {
| `- error: cannot find type 'URLSessionDelegate' in scope
4 | /// Handles the URL session's authentication challenge.
5 | ///
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:3:66: error: cannot find type 'URLSessionTaskDelegate' in scope
1 | import Foundation
2 |
3 | final class TrustAllCertsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate, Sendable {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
4 | /// Handles the URL session's authentication challenge.
5 | ///
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:10:107: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
8 | /// - challenge: The authentication challenge.
9 | /// - Returns: A tuple containing the disposition and URL credential.
10 | func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
11 | Self.didReceiveChallenge(challenge: challenge)
12 | }
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:10:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | /// - challenge: The authentication challenge.
9 | /// - Returns: A tuple containing the disposition and URL credential.
10 | func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | Self.didReceiveChallenge(challenge: challenge)
12 | }
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/VaultSwift/Utilities/TrustAllCertsDelegate.swift:10:58: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | /// - challenge: The authentication challenge.
9 | /// - Returns: A tuple containing the disposition and URL credential.
10 | func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | Self.didReceiveChallenge(challenge: challenge)
12 | }
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/VaultSwift/Utilities/TrustAllCertsDelegate.swift:18:91: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
16 | /// - Parameter challenge: The authentication challenge.
17 | /// - Returns: A tuple containing the disposition and URL credential.
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:18:48: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | /// - Parameter challenge: The authentication challenge.
17 | /// - Returns: A tuple containing the disposition and URL credential.
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
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/VaultSwift/Utilities/TrustAllCertsDelegate.swift:19:40: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
17 | /// - Returns: A tuple containing the disposition and URL credential.
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
21 | return (.useCredential, URLCredential(trust: serverTrust))
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:20:13: error: cannot find 'SecTrustSetExceptions' in scope
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
| `- error: cannot find 'SecTrustSetExceptions' in scope
21 | return (.useCredential, URLCredential(trust: serverTrust))
22 | } else {
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:20:48: error: cannot find 'SecTrustCopyExceptions' in scope
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
| `- error: cannot find 'SecTrustCopyExceptions' in scope
21 | return (.useCredential, URLCredential(trust: serverTrust))
22 | } else {
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:21:22: error: cannot infer contextual base in reference to member 'useCredential'
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
21 | return (.useCredential, URLCredential(trust: serverTrust))
| `- error: cannot infer contextual base in reference to member 'useCredential'
22 | } else {
23 | return (.useCredential, nil)
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:21:37: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
21 | return (.useCredential, URLCredential(trust: serverTrust))
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
22 | } else {
23 | return (.useCredential, nil)
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:23:22: error: cannot infer contextual base in reference to member 'useCredential'
21 | return (.useCredential, URLCredential(trust: serverTrust))
22 | } else {
23 | return (.useCredential, nil)
| `- error: cannot infer contextual base in reference to member 'useCredential'
24 | }
25 | }
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/VaultClient.swift:101:30: error: cannot find 'URLRequest' in scope
99 | }
100 |
101 | var urlRequest = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData)
| `- error: cannot find 'URLRequest' in scope
102 | urlRequest.httpMethod = httpMethod.rawValue
103 |
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/VaultClient.swift:101:65: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
99 | }
100 |
101 | var urlRequest = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData)
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
102 | urlRequest.httpMethod = httpMethod.rawValue
103 |
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/VaultClient.swift:127:64: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
125 | urlRequest.addValue("true", forHTTPHeaderField: "X-Vault-Request")
126 |
127 | let (response, urlResponse) = try await URLSession.shared.data(for: urlRequest, delegate: TrustAllCertsDelegate())
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
128 |
129 | guard let urlResponse = urlResponse as? HTTPURLResponse else {
[255/256] Compiling VaultSwift VaultError.swift
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:3:46: error: cannot find type 'URLSessionDelegate' in scope
1 | import Foundation
2 |
3 | final class TrustAllCertsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate, Sendable {
| `- error: cannot find type 'URLSessionDelegate' in scope
4 | /// Handles the URL session's authentication challenge.
5 | ///
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:3:66: error: cannot find type 'URLSessionTaskDelegate' in scope
1 | import Foundation
2 |
3 | final class TrustAllCertsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate, Sendable {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
4 | /// Handles the URL session's authentication challenge.
5 | ///
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:10:107: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
8 | /// - challenge: The authentication challenge.
9 | /// - Returns: A tuple containing the disposition and URL credential.
10 | func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
11 | Self.didReceiveChallenge(challenge: challenge)
12 | }
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:10:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | /// - challenge: The authentication challenge.
9 | /// - Returns: A tuple containing the disposition and URL credential.
10 | func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | Self.didReceiveChallenge(challenge: challenge)
12 | }
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/VaultSwift/Utilities/TrustAllCertsDelegate.swift:10:58: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | /// - challenge: The authentication challenge.
9 | /// - Returns: A tuple containing the disposition and URL credential.
10 | func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | Self.didReceiveChallenge(challenge: challenge)
12 | }
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/VaultSwift/Utilities/TrustAllCertsDelegate.swift:18:91: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
16 | /// - Parameter challenge: The authentication challenge.
17 | /// - Returns: A tuple containing the disposition and URL credential.
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:18:48: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | /// - Parameter challenge: The authentication challenge.
17 | /// - Returns: A tuple containing the disposition and URL credential.
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
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/VaultSwift/Utilities/TrustAllCertsDelegate.swift:19:40: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
17 | /// - Returns: A tuple containing the disposition and URL credential.
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
21 | return (.useCredential, URLCredential(trust: serverTrust))
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:20:13: error: cannot find 'SecTrustSetExceptions' in scope
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
| `- error: cannot find 'SecTrustSetExceptions' in scope
21 | return (.useCredential, URLCredential(trust: serverTrust))
22 | } else {
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:20:48: error: cannot find 'SecTrustCopyExceptions' in scope
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
| `- error: cannot find 'SecTrustCopyExceptions' in scope
21 | return (.useCredential, URLCredential(trust: serverTrust))
22 | } else {
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:21:22: error: cannot infer contextual base in reference to member 'useCredential'
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
21 | return (.useCredential, URLCredential(trust: serverTrust))
| `- error: cannot infer contextual base in reference to member 'useCredential'
22 | } else {
23 | return (.useCredential, nil)
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:21:37: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
21 | return (.useCredential, URLCredential(trust: serverTrust))
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
22 | } else {
23 | return (.useCredential, nil)
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:23:22: error: cannot infer contextual base in reference to member 'useCredential'
21 | return (.useCredential, URLCredential(trust: serverTrust))
22 | } else {
23 | return (.useCredential, nil)
| `- error: cannot infer contextual base in reference to member 'useCredential'
24 | }
25 | }
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/VaultClient.swift:101:30: error: cannot find 'URLRequest' in scope
99 | }
100 |
101 | var urlRequest = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData)
| `- error: cannot find 'URLRequest' in scope
102 | urlRequest.httpMethod = httpMethod.rawValue
103 |
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/VaultClient.swift:101:65: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
99 | }
100 |
101 | var urlRequest = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData)
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
102 | urlRequest.httpMethod = httpMethod.rawValue
103 |
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/VaultClient.swift:127:64: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
125 | urlRequest.addValue("true", forHTTPHeaderField: "X-Vault-Request")
126 |
127 | let (response, urlResponse) = try await URLSession.shared.data(for: urlRequest, delegate: TrustAllCertsDelegate())
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
128 |
129 | guard let urlResponse = urlResponse as? HTTPURLResponse else {
[256/256] Compiling VaultSwift Vault.swift
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:3:46: error: cannot find type 'URLSessionDelegate' in scope
1 | import Foundation
2 |
3 | final class TrustAllCertsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate, Sendable {
| `- error: cannot find type 'URLSessionDelegate' in scope
4 | /// Handles the URL session's authentication challenge.
5 | ///
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:3:66: error: cannot find type 'URLSessionTaskDelegate' in scope
1 | import Foundation
2 |
3 | final class TrustAllCertsDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate, Sendable {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
4 | /// Handles the URL session's authentication challenge.
5 | ///
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:10:107: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
8 | /// - challenge: The authentication challenge.
9 | /// - Returns: A tuple containing the disposition and URL credential.
10 | func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
11 | Self.didReceiveChallenge(challenge: challenge)
12 | }
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:10:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | /// - challenge: The authentication challenge.
9 | /// - Returns: A tuple containing the disposition and URL credential.
10 | func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | Self.didReceiveChallenge(challenge: challenge)
12 | }
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/VaultSwift/Utilities/TrustAllCertsDelegate.swift:10:58: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | /// - challenge: The authentication challenge.
9 | /// - Returns: A tuple containing the disposition and URL credential.
10 | func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | Self.didReceiveChallenge(challenge: challenge)
12 | }
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/VaultSwift/Utilities/TrustAllCertsDelegate.swift:18:91: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
16 | /// - Parameter challenge: The authentication challenge.
17 | /// - Returns: A tuple containing the disposition and URL credential.
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:18:48: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | /// - Parameter challenge: The authentication challenge.
17 | /// - Returns: A tuple containing the disposition and URL credential.
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
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/VaultSwift/Utilities/TrustAllCertsDelegate.swift:19:40: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
17 | /// - Returns: A tuple containing the disposition and URL credential.
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
21 | return (.useCredential, URLCredential(trust: serverTrust))
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:20:13: error: cannot find 'SecTrustSetExceptions' in scope
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
| `- error: cannot find 'SecTrustSetExceptions' in scope
21 | return (.useCredential, URLCredential(trust: serverTrust))
22 | } else {
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:20:48: error: cannot find 'SecTrustCopyExceptions' in scope
18 | static func didReceiveChallenge(challenge: URLAuthenticationChallenge) -> (URLSession.AuthChallengeDisposition, URLCredential?) {
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
| `- error: cannot find 'SecTrustCopyExceptions' in scope
21 | return (.useCredential, URLCredential(trust: serverTrust))
22 | } else {
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:21:22: error: cannot infer contextual base in reference to member 'useCredential'
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
21 | return (.useCredential, URLCredential(trust: serverTrust))
| `- error: cannot infer contextual base in reference to member 'useCredential'
22 | } else {
23 | return (.useCredential, nil)
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:21:37: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
19 | if let serverTrust = challenge.protectionSpace.serverTrust {
20 | SecTrustSetExceptions(serverTrust, SecTrustCopyExceptions(serverTrust))
21 | return (.useCredential, URLCredential(trust: serverTrust))
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
22 | } else {
23 | return (.useCredential, nil)
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/TrustAllCertsDelegate.swift:23:22: error: cannot infer contextual base in reference to member 'useCredential'
21 | return (.useCredential, URLCredential(trust: serverTrust))
22 | } else {
23 | return (.useCredential, nil)
| `- error: cannot infer contextual base in reference to member 'useCredential'
24 | }
25 | }
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/VaultClient.swift:101:30: error: cannot find 'URLRequest' in scope
99 | }
100 |
101 | var urlRequest = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData)
| `- error: cannot find 'URLRequest' in scope
102 | urlRequest.httpMethod = httpMethod.rawValue
103 |
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/VaultClient.swift:101:65: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
99 | }
100 |
101 | var urlRequest = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData)
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
102 | urlRequest.httpMethod = httpMethod.rawValue
103 |
/host/spi-builder-workspace/Sources/VaultSwift/Utilities/VaultClient.swift:127:64: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
125 | urlRequest.addValue("true", forHTTPHeaderField: "X-Vault-Request")
126 |
127 | let (response, urlResponse) = try await URLSession.shared.data(for: urlRequest, delegate: TrustAllCertsDelegate())
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
128 |
129 | guard let urlResponse = urlResponse as? HTTPURLResponse else {
BUILD FAILURE 6.3 wasm