The Swift Package Index logo.Swift Package Index

Build Information

Failed to build NeuralDefend, reference 1.0.0 (6febe6), with Swift 6.4 for Wasm on 17 Oct 2026 03:40:21 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344847-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest swift build --swift-sdk swift-6.4.0-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Neural-Defend/NeuralDefend-SDKs.git
Reference: 1.0.0
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/Neural-Defend/NeuralDefend-SDKs
 * tag               1.0.0      -> FETCH_HEAD
HEAD is now at 6febe6a Add Swift SDK for iOS and Apple platforms (NeuralDefend via Swift Package Manager) (#49)
Cloned https://github.com/Neural-Defend/NeuralDefend-SDKs.git
Revision (git rev-parse @):
6febe6aa369687a759380b2d57dc2355c61c76b2
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/Neural-Defend/NeuralDefend-SDKs.git at 1.0.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.4
Building package at path:  $PWD
https://github.com/Neural-Defend/NeuralDefend-SDKs.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344847-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest swift build --swift-sdk swift-6.4.0-RELEASE_wasm 2>&1
wasm-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:7a2e5502d3bb6640f9b2bbb1dadf9967024364ce9ed0ed0bd80cf1b699d193fd
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest
Building for debugging...
[Planning deferred tasks]
error: SwiftCompile normal wasm32 failed with a nonzero exit code. Command line:     cd /host

[27 / 35] NeuralDefend
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/NeuroVerifyClient.swift:105:31: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
103 |         apiKey: String,
104 |         options: Options = Options(),
105 |         sessionConfiguration: URLSessionConfiguration = .ephemeral
    |                               `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
106 |     ) throws {
107 |         try self.init(
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/NeuroVerifyClient.swift:105:58: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
103 |         apiKey: String,
104 |         options: Options = Options(),
105 |         sessionConfiguration: URLSessionConfiguration = .ephemeral
    |                                                          `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
106 |     ) throws {
107 |         try self.init(
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/NeuroVerifyClient.swift:105:58: error: value of type '_' expected to be instance of class or class-constrained type
103 |         apiKey: String,
104 |         options: Options = Options(),
105 |         sessionConfiguration: URLSessionConfiguration = .ephemeral
    |                                                          `- error: value of type '_' expected to be instance of class or class-constrained type
106 |     ) throws {
107 |         try self.init(
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/NeuroVerifyClient.swift:121:31: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
119 |         apiKey: String,
120 |         options: Options = Options(),
121 |         sessionConfiguration: URLSessionConfiguration = .ephemeral
    |                               `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
122 |     ) throws -> NeuroVerifyClient {
123 |         var pinned = options
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/NeuroVerifyClient.swift:121:58: error: value of type '_' expected to be instance of class or class-constrained type
119 |         apiKey: String,
120 |         options: Options = Options(),
121 |         sessionConfiguration: URLSessionConfiguration = .ephemeral
    |                                                          `- error: value of type '_' expected to be instance of class or class-constrained type
122 |     ) throws -> NeuroVerifyClient {
123 |         var pinned = options
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/NeuroVerifyClient.swift:121:58: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
119 |         apiKey: String,
120 |         options: Options = Options(),
121 |         sessionConfiguration: URLSessionConfiguration = .ephemeral
    |                                                          `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
122 |     ) throws -> NeuroVerifyClient {
123 |         var pinned = options
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/NeuroVerifyClient.swift:133:31: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
131 |     public static func fromEnvironment(
132 |         options: Options = Options(),
133 |         sessionConfiguration: URLSessionConfiguration = .ephemeral,
    |                               `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
134 |         environment: [String: String] = ProcessInfo.processInfo.environment
135 |     ) throws -> NeuroVerifyClient {
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/NeuroVerifyClient.swift:133:58: error: value of type '_' expected to be instance of class or class-constrained type
131 |     public static func fromEnvironment(
132 |         options: Options = Options(),
133 |         sessionConfiguration: URLSessionConfiguration = .ephemeral,
    |                                                          `- error: value of type '_' expected to be instance of class or class-constrained type
134 |         environment: [String: String] = ProcessInfo.processInfo.environment
135 |     ) throws -> NeuroVerifyClient {
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/NeuroVerifyClient.swift:133:58: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
131 |     public static func fromEnvironment(
132 |         options: Options = Options(),
133 |         sessionConfiguration: URLSessionConfiguration = .ephemeral,
    |                                                          `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
134 |         environment: [String: String] = ProcessInfo.processInfo.environment
135 |     ) throws -> NeuroVerifyClient {
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/NeuroVerifyClient.swift:160:31: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
158 |         apiKey: String,
159 |         options: Options,
160 |         sessionConfiguration: URLSessionConfiguration,
    |                               `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
161 |         allowInsecureForTesting: Bool,
162 |         runtime: ClientRuntime
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:14:18: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 | struct TransportResponse: Sendable {
 13 |     let statusCode: Int
 14 |     let headers: HTTPURLResponse
    |                  `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 15 |     let body: Data
 16 |
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/packages/swift/Sources/NeuralDefend/Transport.swift:14:9: error: stored property 'headers' of 'Sendable'-conforming struct 'TransportResponse' has non-Sendable type 'AnyObject'
 12 | struct TransportResponse: Sendable {
 13 |     let statusCode: Int
 14 |     let headers: HTTPURLResponse
    |         `- error: stored property 'headers' of 'Sendable'-conforming struct 'TransportResponse' has non-Sendable type 'AnyObject'
 15 |     let body: Data
 16 |
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:25:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 23 | /// its own deadline, and cancelling the calling task cancels the transfer.
 24 | final class Transport: Sendable {
 25 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |     private let delegate: TransportDelegate
 27 |
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/packages/swift/Sources/NeuralDefend/Transport.swift:28:25: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |     private let delegate: TransportDelegate
 27 |
 28 |     init(configuration: URLSessionConfiguration) {
    |                         `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 29 |         let delegate = TransportDelegate()
 30 |         let queue = OperationQueue()
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:42:20: error: cannot find type 'URLRequest' in scope
 40 |
 41 |     func upload(
 42 |         _ request: URLRequest,
    |                    `- error: cannot find type 'URLRequest' in scope
 43 |         bodyFile: URL,
 44 |         totalBytes: Int64,
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:25:17: error: stored property 'session' of 'Sendable'-conforming class 'Transport' has non-Sendable type 'AnyObject'
 23 | /// its own deadline, and cancelling the calling task cancels the transfer.
 24 | final class Transport: Sendable {
 25 |     private let session: URLSession
    |                 `- error: stored property 'session' of 'Sendable'-conforming class 'Transport' has non-Sendable type 'AnyObject'
 26 |     private let delegate: TransportDelegate
 27 |
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:77:23: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 75 |
 76 |     private let lock = NSLock()
 77 |     private let task: URLSessionTask
    |                       `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 78 |     private let totalBytes: Int64
 79 |     private let timeout: TimeInterval
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:90:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 88 |
 89 |     init(
 90 |         task: URLSessionTask,
    |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 91 |         totalBytes: Int64,
 92 |         timeout: TimeInterval,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:151:50: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
149 |     }
150 |
151 |     func complete(error: (any Error)?, response: URLResponse?) {
    |                                                  `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
152 |         lock.lock()
153 |         guard !finished, let continuation else {
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:175:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
173 |         reason: EndReason?,
174 |         error: (any Error)?,
175 |         response: URLResponse?,
    |                   `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
176 |         body: Data
177 |     ) -> Result<TransportResponse, NeuroVerifyError> {
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:213:50: error: cannot find type 'URLSessionDataDelegate' in scope
211 | }
212 |
213 | private final class TransportDelegate: NSObject, URLSessionDataDelegate, @unchecked Sendable {
    |                                                  `- error: cannot find type 'URLSessionDataDelegate' in scope
214 |     private let lock = NSLock()
215 |     private var exchanges: [Int: Exchange] = [:]
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:223:37: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
221 |     }
222 |
223 |     private func exchange(for task: URLSessionTask, remove: Bool = false) -> Exchange? {
    |                                     `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
224 |         lock.lock()
225 |         defer { lock.unlock() }
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:233:29: error: cannot find type 'URLRequest' in scope
231 |         task: URLSessionTask,
232 |         willPerformHTTPRedirection response: HTTPURLResponse,
233 |         newRequest request: URLRequest,
    |                             `- error: cannot find type 'URLRequest' in scope
234 |         completionHandler: @escaping @Sendable (URLRequest?) -> Void
235 |     ) {
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:234:49: error: cannot find type 'URLRequest' in scope
232 |         willPerformHTTPRedirection response: HTTPURLResponse,
233 |         newRequest request: URLRequest,
234 |         completionHandler: @escaping @Sendable (URLRequest?) -> Void
    |                                                 `- error: cannot find type 'URLRequest' in scope
235 |     ) {
236 |         // The redirect target would receive the API key and the media, so the 3xx response is
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:230:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
228 |
229 |     func urlSession(
230 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
231 |         task: URLSessionTask,
232 |         willPerformHTTPRedirection response: HTTPURLResponse,
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/packages/swift/Sources/NeuralDefend/Transport.swift:231:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
229 |     func urlSession(
230 |         _ session: URLSession,
231 |         task: URLSessionTask,
    |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
232 |         willPerformHTTPRedirection response: HTTPURLResponse,
233 |         newRequest request: URLRequest,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:232:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
230 |         _ session: URLSession,
231 |         task: URLSessionTask,
232 |         willPerformHTTPRedirection response: HTTPURLResponse,
    |                                              `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
233 |         newRequest request: URLRequest,
234 |         completionHandler: @escaping @Sendable (URLRequest?) -> Void
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/packages/swift/Sources/NeuralDefend/Transport.swift:242:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
240 |
241 |     func urlSession(
242 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
243 |         task: URLSessionTask,
244 |         didSendBodyData bytesSent: Int64,
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/packages/swift/Sources/NeuralDefend/Transport.swift:243:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
241 |     func urlSession(
242 |         _ session: URLSession,
243 |         task: URLSessionTask,
    |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
244 |         didSendBodyData bytesSent: Int64,
245 |         totalBytesSent: Int64,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:251:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
249 |     }
250 |
251 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
252 |         exchange(for: dataTask)?.append(data)
253 |     }
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/packages/swift/Sources/NeuralDefend/Transport.swift:251:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
249 |     }
250 |
251 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
    |                                                      `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
252 |         exchange(for: dataTask)?.append(data)
253 |     }
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:255:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
253 |     }
254 |
255 |     func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
256 |         exchange(for: task, remove: true)?.complete(error: error, response: task.response)
257 |     }
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/packages/swift/Sources/NeuralDefend/Transport.swift:255:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
253 |     }
254 |
255 |     func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
    |                                                  `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
256 |         exchange(for: task, remove: true)?.complete(error: error, response: task.response)
257 |     }
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
Failed frontend command:
/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Errors.swift /host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/JSONValue.swift /host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/MediaInput.swift /host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Multipart.swift /host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/NeuroVerifyClient.swift /host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/PhotosPickerSupport.swift /host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Results.swift /host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Retry.swift /host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift /host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Version.swift /host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Wire.swift -target wasm32-unknown-wasip1 -disable-objc-interop -sdk /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk -sysroot /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk -I /host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /usr/lib/swift/host/plugins/testing\#/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -resource-dir /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static -use-static-resource-dir -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -resource-dir -Xcc /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/NeuralDefend.build/Debug-webassembly-wasm32/NeuralDefend-t.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/NeuralDefend.build/Debug-webassembly-wasm32/NeuralDefend-t.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/NeuralDefend.build/Debug-webassembly-wasm32/NeuralDefend-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name NeuralDefend -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/NeuralDefend.build/Debug-webassembly-wasm32/NeuralDefend-t.build/Objects-normal/wasm32/NeuralDefend_const_extract_protocols.json -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -emit-module-doc-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/NeuralDefend.build/Debug-webassembly-wasm32/NeuralDefend-t.build/Objects-normal/wasm32/Modules/NeuralDefend.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/NeuralDefend.build/Debug-webassembly-wasm32/NeuralDefend-t.build/Objects-normal/wasm32/Modules/NeuralDefend.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/NeuralDefend.build/Debug-webassembly-wasm32/NeuralDefend-t.build/Objects-normal/wasm32/NeuralDefend-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/NeuralDefend.build/Debug-webassembly-wasm32/NeuralDefend-t.build/Objects-normal/wasm32/NeuralDefend-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/NeuralDefend.build/Debug-webassembly-wasm32/NeuralDefend-t.build/Objects-normal/wasm32/NeuralDefend-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/NeuralDefend.build/Debug-webassembly-wasm32/NeuralDefend-t.build/Objects-normal/wasm32/Modules/NeuralDefend.swiftmodule
error: Build failed
BUILD FAILURE 6.4 wasm