Build Information
Failed to build CypheraKeychain, reference main (2fee0c), with Swift 6.2 for Wasm on 23 Apr 2026 10:28:14 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/cyphera-labs/keychain-swift.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/cyphera-labs/keychain-swift
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 2fee0c4 fix: canonical Apache 2.0 LICENSE, remove MIT references
Cloned https://github.com/cyphera-labs/keychain-swift.git
Revision (git rev-parse @):
2fee0c4c2f097cd23a72f6c2966a3b7dfc977e20
SUCCESS checkout https://github.com/cyphera-labs/keychain-swift.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/cyphera-labs/keychain-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:2a8b2d9e022a9894c61e0736af7cdaa1ee64c002dbb133a55c0d7e8980b3ad16
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.2-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/11] Compiling CypheraKeychain Provider.swift
[4/12] Compiling CypheraKeychain MemoryProvider.swift
[5/12] Compiling CypheraKeychain GcpKmsProvider.swift
/host/spi-builder-workspace/Sources/CypheraKeychain/GcpKmsProvider.swift:26:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | private let endpoint: String
25 | private let accessToken: String
26 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |
28 | /// Creates a GCP Cloud KMS key provider.
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/CypheraKeychain/GcpKmsProvider.swift:176:44: error: cannot find type 'URLRequest' in scope
174 | // MARK: - Helpers
175 |
176 | private func performRequest(_ request: URLRequest) throws -> (Data, Int) {
| `- error: cannot find type 'URLRequest' in scope
177 | var responseData: Data?
178 | var responseError: Error?
/host/spi-builder-workspace/Sources/CypheraKeychain/GcpKmsProvider.swift:45:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
43 | : accessToken
44 |
45 | let config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
46 | config.timeoutIntervalForRequest = 10
47 | self.session = URLSession(configuration: config)
/host/spi-builder-workspace/Sources/CypheraKeychain/GcpKmsProvider.swift:47:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
45 | let config = URLSessionConfiguration.default
46 | config.timeoutIntervalForRequest = 10
47 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
48 | }
49 |
/host/spi-builder-workspace/Sources/CypheraKeychain/GcpKmsProvider.swift:109:23: error: cannot find 'URLRequest' in scope
107 | let bodyData = try JSONEncoder().encode(body)
108 |
109 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
110 | request.httpMethod = "POST"
111 | request.httpBody = bodyData
/host/spi-builder-workspace/Sources/CypheraKeychain/GcpKmsProvider.swift:148:23: error: cannot find 'URLRequest' in scope
146 | let bodyData = try JSONEncoder().encode(body)
147 |
148 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
149 | request.httpMethod = "POST"
150 | request.httpBody = bodyData
/host/spi-builder-workspace/Sources/CypheraKeychain/GcpKmsProvider.swift:179:27: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
177 | var responseData: Data?
178 | var responseError: Error?
179 | var httpResponse: HTTPURLResponse?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
180 |
181 | let semaphore = DispatchSemaphore(value: 0)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/CypheraKeychain/GcpKmsProvider.swift:181:25: error: cannot find 'DispatchSemaphore' in scope
179 | var httpResponse: HTTPURLResponse?
180 |
181 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
182 | let task = session.dataTask(with: request) { data, response, error in
183 | responseData = data
/host/spi-builder-workspace/Sources/CypheraKeychain/GcpKmsProvider.swift:182:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
180 |
181 | let semaphore = DispatchSemaphore(value: 0)
182 | let task = session.dataTask(with: request) { data, response, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
183 | responseData = data
184 | responseError = error
/host/spi-builder-workspace/Sources/CypheraKeychain/GcpKmsProvider.swift:194:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
192 | throw KeychainError.providerError("GCP KMS request failed: \(error.localizedDescription)")
193 | }
194 | guard let statusCode = httpResponse?.statusCode else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
195 | throw KeychainError.providerError("GCP KMS returned no response")
196 | }
[6/12] Compiling CypheraKeychain EnvProvider.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/12] Compiling CypheraKeychain Bridge.swift
[8/12] Emitting module CypheraKeychain
/host/spi-builder-workspace/Sources/CypheraKeychain/AwsKmsProvider.swift:28:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | private let accessKeyId: String
27 | private let secretAccessKey: String
28 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |
30 | /// Creates an AWS KMS key provider.
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/CypheraKeychain/AzureKvProvider.swift:31:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | private let apiVersion: String
30 | private let accessToken: String
31 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 | /// Creates an Azure Key Vault key provider.
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/CypheraKeychain/AzureKvProvider.swift:177:44: error: cannot find type 'URLRequest' in scope
175 | // MARK: - Helpers
176 |
177 | private func performRequest(_ request: URLRequest) throws -> (Data, Int) {
| `- error: cannot find type 'URLRequest' in scope
178 | var responseData: Data?
179 | var responseError: Error?
/host/spi-builder-workspace/Sources/CypheraKeychain/GcpKmsProvider.swift:26:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | private let endpoint: String
25 | private let accessToken: String
26 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |
28 | /// Creates a GCP Cloud KMS key provider.
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/CypheraKeychain/GcpKmsProvider.swift:176:44: error: cannot find type 'URLRequest' in scope
174 | // MARK: - Helpers
175 |
176 | private func performRequest(_ request: URLRequest) throws -> (Data, Int) {
| `- error: cannot find type 'URLRequest' in scope
177 | var responseData: Data?
178 | var responseError: Error?
/host/spi-builder-workspace/Sources/CypheraKeychain/VaultProvider.swift:14:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | private let token: String
13 | private let mount: String
14 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |
16 | /// Creates a Vault key provider.
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
[9/12] Compiling CypheraKeychain FileProvider.swift
[10/12] Compiling CypheraKeychain AwsKmsProvider.swift
/host/spi-builder-workspace/Sources/CypheraKeychain/AwsKmsProvider.swift:28:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | private let accessKeyId: String
27 | private let secretAccessKey: String
28 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |
30 | /// Creates an AWS KMS key provider.
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/CypheraKeychain/AwsKmsProvider.swift:57:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
55 | : secretAccessKey
56 |
57 | let config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
58 | config.timeoutIntervalForRequest = 10
59 | self.session = URLSession(configuration: config)
/host/spi-builder-workspace/Sources/CypheraKeychain/AwsKmsProvider.swift:59:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
57 | let config = URLSessionConfiguration.default
58 | config.timeoutIntervalForRequest = 10
59 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
60 | }
61 |
/host/spi-builder-workspace/Sources/CypheraKeychain/AwsKmsProvider.swift:89:23: error: cannot find 'URLRequest' in scope
87 | }
88 |
89 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
90 | request.httpMethod = "POST"
91 | request.httpBody = bodyData
/host/spi-builder-workspace/Sources/CypheraKeychain/AwsKmsProvider.swift:101:27: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
99 | var responseData: Data?
100 | var responseError: Error?
101 | var httpResponse: HTTPURLResponse?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
102 |
103 | let semaphore = DispatchSemaphore(value: 0)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/CypheraKeychain/AwsKmsProvider.swift:103:25: error: cannot find 'DispatchSemaphore' in scope
101 | var httpResponse: HTTPURLResponse?
102 |
103 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
104 | let task = session.dataTask(with: request) { data, response, error in
105 | responseData = data
/host/spi-builder-workspace/Sources/CypheraKeychain/AwsKmsProvider.swift:104:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
102 |
103 | let semaphore = DispatchSemaphore(value: 0)
104 | let task = session.dataTask(with: request) { data, response, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
105 | responseData = data
106 | responseError = error
/host/spi-builder-workspace/Sources/CypheraKeychain/AwsKmsProvider.swift:116:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
114 | throw KeychainError.providerError("AWS KMS request failed: \(error.localizedDescription)")
115 | }
116 | guard let statusCode = httpResponse?.statusCode else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
117 | throw KeychainError.providerError("AWS KMS returned no response")
118 | }
/host/spi-builder-workspace/Sources/CypheraKeychain/AzureKvProvider.swift:31:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | private let apiVersion: String
30 | private let accessToken: String
31 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 | /// Creates an Azure Key Vault key provider.
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/CypheraKeychain/AzureKvProvider.swift:177:44: error: cannot find type 'URLRequest' in scope
175 | // MARK: - Helpers
176 |
177 | private func performRequest(_ request: URLRequest) throws -> (Data, Int) {
| `- error: cannot find type 'URLRequest' in scope
178 | var responseData: Data?
179 | var responseError: Error?
/host/spi-builder-workspace/Sources/CypheraKeychain/AzureKvProvider.swift:52:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
50 | : accessToken
51 |
52 | let config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
53 | config.timeoutIntervalForRequest = 10
54 | self.session = URLSession(configuration: config)
/host/spi-builder-workspace/Sources/CypheraKeychain/AzureKvProvider.swift:54:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
52 | let config = URLSessionConfiguration.default
53 | config.timeoutIntervalForRequest = 10
54 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
55 | }
56 |
/host/spi-builder-workspace/Sources/CypheraKeychain/AzureKvProvider.swift:112:23: error: cannot find 'URLRequest' in scope
110 | }
111 |
112 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
113 | request.httpMethod = "GET"
114 | request.setValue("Bearer \(accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/CypheraKeychain/AzureKvProvider.swift:149:23: error: cannot find 'URLRequest' in scope
147 | let bodyData = try JSONEncoder().encode(body)
148 |
149 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
150 | request.httpMethod = "POST"
151 | request.httpBody = bodyData
/host/spi-builder-workspace/Sources/CypheraKeychain/AzureKvProvider.swift:180:27: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
178 | var responseData: Data?
179 | var responseError: Error?
180 | var httpResponse: HTTPURLResponse?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
181 |
182 | let semaphore = DispatchSemaphore(value: 0)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/CypheraKeychain/AzureKvProvider.swift:182:25: error: cannot find 'DispatchSemaphore' in scope
180 | var httpResponse: HTTPURLResponse?
181 |
182 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
183 | let task = session.dataTask(with: request) { data, response, error in
184 | responseData = data
/host/spi-builder-workspace/Sources/CypheraKeychain/AzureKvProvider.swift:183:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
181 |
182 | let semaphore = DispatchSemaphore(value: 0)
183 | let task = session.dataTask(with: request) { data, response, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
184 | responseData = data
185 | responseError = error
/host/spi-builder-workspace/Sources/CypheraKeychain/AzureKvProvider.swift:195:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
193 | throw KeychainError.providerError("Azure Key Vault request failed: \(error.localizedDescription)")
194 | }
195 | guard let statusCode = httpResponse?.statusCode else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
196 | throw KeychainError.providerError("Azure Key Vault returned no response")
197 | }
[11/12] Compiling CypheraKeychain AzureKvProvider.swift
/host/spi-builder-workspace/Sources/CypheraKeychain/AwsKmsProvider.swift:28:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | private let accessKeyId: String
27 | private let secretAccessKey: String
28 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |
30 | /// Creates an AWS KMS key provider.
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/CypheraKeychain/AwsKmsProvider.swift:57:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
55 | : secretAccessKey
56 |
57 | let config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
58 | config.timeoutIntervalForRequest = 10
59 | self.session = URLSession(configuration: config)
/host/spi-builder-workspace/Sources/CypheraKeychain/AwsKmsProvider.swift:59:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
57 | let config = URLSessionConfiguration.default
58 | config.timeoutIntervalForRequest = 10
59 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
60 | }
61 |
/host/spi-builder-workspace/Sources/CypheraKeychain/AwsKmsProvider.swift:89:23: error: cannot find 'URLRequest' in scope
87 | }
88 |
89 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
90 | request.httpMethod = "POST"
91 | request.httpBody = bodyData
/host/spi-builder-workspace/Sources/CypheraKeychain/AwsKmsProvider.swift:101:27: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
99 | var responseData: Data?
100 | var responseError: Error?
101 | var httpResponse: HTTPURLResponse?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
102 |
103 | let semaphore = DispatchSemaphore(value: 0)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/CypheraKeychain/AwsKmsProvider.swift:103:25: error: cannot find 'DispatchSemaphore' in scope
101 | var httpResponse: HTTPURLResponse?
102 |
103 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
104 | let task = session.dataTask(with: request) { data, response, error in
105 | responseData = data
/host/spi-builder-workspace/Sources/CypheraKeychain/AwsKmsProvider.swift:104:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
102 |
103 | let semaphore = DispatchSemaphore(value: 0)
104 | let task = session.dataTask(with: request) { data, response, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
105 | responseData = data
106 | responseError = error
/host/spi-builder-workspace/Sources/CypheraKeychain/AwsKmsProvider.swift:116:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
114 | throw KeychainError.providerError("AWS KMS request failed: \(error.localizedDescription)")
115 | }
116 | guard let statusCode = httpResponse?.statusCode else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
117 | throw KeychainError.providerError("AWS KMS returned no response")
118 | }
/host/spi-builder-workspace/Sources/CypheraKeychain/AzureKvProvider.swift:31:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | private let apiVersion: String
30 | private let accessToken: String
31 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 | /// Creates an Azure Key Vault key provider.
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/CypheraKeychain/AzureKvProvider.swift:177:44: error: cannot find type 'URLRequest' in scope
175 | // MARK: - Helpers
176 |
177 | private func performRequest(_ request: URLRequest) throws -> (Data, Int) {
| `- error: cannot find type 'URLRequest' in scope
178 | var responseData: Data?
179 | var responseError: Error?
/host/spi-builder-workspace/Sources/CypheraKeychain/AzureKvProvider.swift:52:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
50 | : accessToken
51 |
52 | let config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
53 | config.timeoutIntervalForRequest = 10
54 | self.session = URLSession(configuration: config)
/host/spi-builder-workspace/Sources/CypheraKeychain/AzureKvProvider.swift:54:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
52 | let config = URLSessionConfiguration.default
53 | config.timeoutIntervalForRequest = 10
54 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
55 | }
56 |
/host/spi-builder-workspace/Sources/CypheraKeychain/AzureKvProvider.swift:112:23: error: cannot find 'URLRequest' in scope
110 | }
111 |
112 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
113 | request.httpMethod = "GET"
114 | request.setValue("Bearer \(accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/CypheraKeychain/AzureKvProvider.swift:149:23: error: cannot find 'URLRequest' in scope
147 | let bodyData = try JSONEncoder().encode(body)
148 |
149 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
150 | request.httpMethod = "POST"
151 | request.httpBody = bodyData
/host/spi-builder-workspace/Sources/CypheraKeychain/AzureKvProvider.swift:180:27: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
178 | var responseData: Data?
179 | var responseError: Error?
180 | var httpResponse: HTTPURLResponse?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
181 |
182 | let semaphore = DispatchSemaphore(value: 0)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/CypheraKeychain/AzureKvProvider.swift:182:25: error: cannot find 'DispatchSemaphore' in scope
180 | var httpResponse: HTTPURLResponse?
181 |
182 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
183 | let task = session.dataTask(with: request) { data, response, error in
184 | responseData = data
/host/spi-builder-workspace/Sources/CypheraKeychain/AzureKvProvider.swift:183:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
181 |
182 | let semaphore = DispatchSemaphore(value: 0)
183 | let task = session.dataTask(with: request) { data, response, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
184 | responseData = data
185 | responseError = error
/host/spi-builder-workspace/Sources/CypheraKeychain/AzureKvProvider.swift:195:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
193 | throw KeychainError.providerError("Azure Key Vault request failed: \(error.localizedDescription)")
194 | }
195 | guard let statusCode = httpResponse?.statusCode else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
196 | throw KeychainError.providerError("Azure Key Vault returned no response")
197 | }
[12/12] Compiling CypheraKeychain VaultProvider.swift
/host/spi-builder-workspace/Sources/CypheraKeychain/VaultProvider.swift:14:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | private let token: String
13 | private let mount: String
14 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |
16 | /// Creates a Vault key provider.
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/CypheraKeychain/VaultProvider.swift:26:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
24 | self.mount = mount
25 |
26 | let config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
27 | config.timeoutIntervalForRequest = 10
28 | self.session = URLSession(configuration: config)
/host/spi-builder-workspace/Sources/CypheraKeychain/VaultProvider.swift:28:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
26 | let config = URLSessionConfiguration.default
27 | config.timeoutIntervalForRequest = 10
28 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
29 | }
30 |
/host/spi-builder-workspace/Sources/CypheraKeychain/VaultProvider.swift:37:23: error: cannot find 'URLRequest' in scope
35 | }
36 |
37 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
38 | request.httpMethod = "GET"
39 | request.setValue(token, forHTTPHeaderField: "X-Vault-Token")
/host/spi-builder-workspace/Sources/CypheraKeychain/VaultProvider.swift:43:27: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | var responseData: Data?
42 | var responseError: Error?
43 | var httpResponse: HTTPURLResponse?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |
45 | let semaphore = DispatchSemaphore(value: 0)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/CypheraKeychain/VaultProvider.swift:45:25: error: cannot find 'DispatchSemaphore' in scope
43 | var httpResponse: HTTPURLResponse?
44 |
45 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
46 | let task = session.dataTask(with: request) { data, response, error in
47 | responseData = data
/host/spi-builder-workspace/Sources/CypheraKeychain/VaultProvider.swift:46:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
44 |
45 | let semaphore = DispatchSemaphore(value: 0)
46 | let task = session.dataTask(with: request) { data, response, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
47 | responseData = data
48 | responseError = error
/host/spi-builder-workspace/Sources/CypheraKeychain/VaultProvider.swift:58:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
56 | throw KeychainError.providerError("vault request failed: \(error.localizedDescription)")
57 | }
58 | guard let statusCode = httpResponse?.statusCode else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
59 | throw KeychainError.providerError("vault returned no response")
60 | }
BUILD FAILURE 6.2 wasm