Build Information
Failed to build VaultSwift, reference main (4624b3), with Swift 6.1 for Wasm on 31 May 2025 04:12:11 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
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/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 {
[145/255] Compiling VaultSwift RenewLeaseRequest_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/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 {
[146/255] Compiling VaultSwift RenewLeaseResponse_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/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 {
[147/255] 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/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 {
[148/255] 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/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 {
[149/255] 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/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 {
[150/255] 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/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 {
[151/255] 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/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 {
[152/255] 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/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 {
[153/255] 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/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 {
[154/255] 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/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 {
[155/255] 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/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 {
[156/255] 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/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 {
[157/255] 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/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 {
[158/255] 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/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 {
[159/255] 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/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 {
[160/255] 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/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 {
[161/255] 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/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 {
[162/255] 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/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 {
[163/255] 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/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 {
[164/255] Compiling VaultSwift TokenProvider_AWS.swift
[165/255] Compiling VaultSwift AuthClient_AliCloud.swift
[166/255] Compiling VaultSwift RoleRequest_AliCloud_AuthProvider.swift
[167/255] Compiling VaultSwift RoleResponse_AliCloud_AuthProvider.swift
[168/255] Compiling VaultSwift TokenProvider_AliCloud.swift
[169/255] Compiling VaultSwift AuthClient_AppRole.swift
[170/255] Compiling VaultSwift CustomSecretIDRequest_AppRole.swift
[171/255] Compiling VaultSwift RoleID_AppRole.swift
[172/255] Compiling VaultSwift RolePeriod_AppRole.swift
[173/255] Compiling VaultSwift RolePolicies_AppRole.swift
[174/255] Compiling VaultSwift Role_AppRole.swift
[175/255] Compiling VaultSwift SecretIDBindingCIDRs_AppRole.swift
[176/255] Compiling VaultSwift SecretIDBinding_AppRole.swift
[177/255] Compiling VaultSwift SecretIDInfo_AppRole.swift
[178/255] Compiling VaultSwift SecretIDRequest_AppRole.swift
[179/255] Compiling VaultSwift SecretIDResponse_AppRole.swift
[180/255] Compiling VaultSwift SecretIDTimeToLive_AppRole.swift
[181/255] Compiling VaultSwift SecretIDUsage_AppRole.swift
[182/255] Compiling VaultSwift TokenBoundCIDRs_AppRole.swift
[183/255] Compiling VaultSwift TokenMaxTimeToLive_AppRole.swift
[184/255] Compiling VaultSwift TokenTimeToLive_AppRole.swift
[185/255] Compiling VaultSwift TokenProvider_AppRole.swift
[186/255] Compiling VaultSwift AuthProvider.swift
[187/255] Compiling VaultSwift DecodeResponse_Transform.swift
[188/255] Compiling VaultSwift EncodeResponse_Transform.swift
[189/255] Compiling VaultSwift Client_Transit.swift
[190/255] Compiling VaultSwift BackupKey_Transit.swift
[191/255] Compiling VaultSwift CacheConfigOptions_Transit.swift
[192/255] Compiling VaultSwift CreateKeyOptions_Transit.swift
[193/255] Compiling VaultSwift DataKeyOptions_Transit.swift
[194/255] Compiling VaultSwift DataKeyResponse_Transit.swift
[195/255] Compiling VaultSwift DecryptOptions_Transit.swift
[196/255] Compiling VaultSwift DecryptResponse_Transit.swift
[197/255] Compiling VaultSwift EncryptOptions_Transit.swift
[198/255] Compiling VaultSwift EncryptResponse_Transit.swift
[199/255] Compiling VaultSwift EncryptionKeyConfig_Transit.swift
[200/255] Compiling VaultSwift EncryptionKey_Transit.swift
[201/255] Compiling VaultSwift ExportedKey_Transit.swift
[202/255] Compiling VaultSwift GenerateRandomBytesRequest_Transit.swift
[203/255] Compiling VaultSwift GenerateRandomBytesResponse_Transit.swift
[204/255] Compiling VaultSwift HMACRequest_Transit.swift
[205/255] Compiling VaultSwift HMACResponse_Transit.swift
[206/255] Compiling VaultSwift HashAlgorithmType_Transit.swift
[207/255] Compiling VaultSwift HashFunctionType_Transit.swift
[208/255] Compiling VaultSwift HashRequest_Transit.swift
[209/255] Compiling VaultSwift HashResponse_Transit.swift
[210/255] Compiling VaultSwift MFA_SystemBackend.swift
[211/255] Compiling VaultSwift ACLPolicy_SystemBackend.swift
[212/255] Compiling VaultSwift AuditBackend_SystemBackend.swift
[213/255] Compiling VaultSwift AuditHash_SystemBackend.swift
[214/255] Compiling VaultSwift AuthBackend_SystemBackend.swift
[215/255] Compiling VaultSwift BackendConfig_SystemBackend.swift
[216/255] Compiling VaultSwift CORSConfig_SystemBackend.swift
[217/255] Compiling VaultSwift ControlGroupConfig_SystemBackend_Enterprise.swift
[218/255] Compiling VaultSwift ControlGroupStatus_SystemBackend_Enterprise.swift
[219/255] Compiling VaultSwift EGPPolicy_SystemBackend_Enterprise.swift
[220/255] Compiling VaultSwift EnforcementLevel_SystemBackend_Enterprise.swift
[221/255] Compiling VaultSwift License_SystemBackend_Enterprise.swift
[222/255] Compiling VaultSwift RGPPolicy_SystemBackend_Enterprise.swift
[223/255] Compiling VaultSwift InitOptions_SystemBackend.swift
[224/255] Compiling VaultSwift KeyStatus_SystemBackend.swift
[225/255] Compiling VaultSwift Leader_SystemBackend.swift
[226/255] Compiling VaultSwift Lease_SystemBackend.swift
[227/255] Compiling VaultSwift LogVerbosityLevel_SystemBackend.swift
[228/255] Compiling VaultSwift MasterCredentials_SystemBackend.swift
[229/255] Compiling VaultSwift PasswordResponse_SystemBackend.swift
[230/255] Compiling VaultSwift Plugin_SystemBackend_Plugins.swift
[231/255] Compiling VaultSwift ReloadBackendsRequest_SystemBackend_Plugins.swift
[232/255] Compiling VaultSwift Policy_SystemBackend.swift
[233/255] Compiling VaultSwift ImportKeyOptions_Transit.swift
[234/255] Compiling VaultSwift ImportKeyVersionOptions_Transit.swift
[235/255] Compiling VaultSwift KeyCategoryType_Transit.swift
[236/255] Compiling VaultSwift KeyType_Transit.swift
[237/255] Compiling VaultSwift MarshalingAlgorithm_Transit.swift
[238/255] Compiling VaultSwift OutputEncodingFormat_Transit.swift
[239/255] Compiling VaultSwift RestoreEncryptionKeyRequest_Transit.swift
[240/255] Compiling VaultSwift RewrapOptions_Transit.swift
[241/255] Compiling VaultSwift RewrapResponse_Transit.swift
[242/255] Compiling VaultSwift SaltLengthType_Transit.swift
[243/255] Compiling VaultSwift SignDataRequest_Transit.swift
[244/255] Compiling VaultSwift SignDataResponse_Transit.swift
[245/255] Compiling VaultSwift SignatureAlgorithm_Transit.swift
[246/255] Compiling VaultSwift TrimEncryptionKeyRequest_Transit.swift
[247/255] Compiling VaultSwift VerifySignedDataRequest_Transit.swift
[248/255] Compiling VaultSwift VerifySignedDataResponse_Transit.swift
[249/255] Compiling VaultSwift WrappingKey_Transit.swift
[250/255] Compiling VaultSwift Client_SystemBackend.swift
[251/255] Compiling VaultSwift Enterprise_SystemBackend.swift
[252/255] Compiling VaultSwift Duo_SystemBackend_MFA.swift
[253/255] Compiling VaultSwift Okta_SystemBackend_MFA.swift
[254/255] Compiling VaultSwift PingID_SystemBackend_MFA.swift
[255/255] Compiling VaultSwift TOTP_SystemBackend_MFA.swift
BUILD FAILURE 6.1 wasm