The Swift Package Index logo.Swift Package Index

Build Information

Failed to build NeuralDefend, reference main (125644), with Swift 6.4 for Wasm on 22 Nov 2026 21:17:05 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-58779149-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.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Neural-Defend/NeuralDefend-SDKs.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/Neural-Defend/NeuralDefend-SDKs
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 125644c Land open Dependabot bumps and unblock their CI failures (#80)
Cloned https://github.com/Neural-Defend/NeuralDefend-SDKs.git
Revision (git rev-parse @):
125644c38e3ff435447eecdd220754d247ca87a2
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/Neural-Defend/NeuralDefend-SDKs.git at main
========================================
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-58779149-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:d7b72fae8894fba3c2632fd7068ea480e9b111160d8dd7b4d9df5fbcfe7a40ee
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: 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: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: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:80:23: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 78 |
 79 |     private let lock = NSLock()
 80 |     private let task: URLSessionTask
    |                       `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 81 |     private let totalBytes: Int64
 82 |     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:93:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 91 |
 92 |     init(
 93 |         task: URLSessionTask,
    |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |         totalBytes: Int64,
 95 |         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:164:50: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
162 |     }
163 |
164 |     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.
165 |         lock.lock()
166 |         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:188:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
186 |         reason: EndReason?,
187 |         error: (any Error)?,
188 |         response: URLResponse?,
    |                   `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
189 |         body: Data
190 |     ) -> 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:237:50: error: cannot find type 'URLSessionDataDelegate' in scope
235 | }
236 |
237 | private final class TransportDelegate: NSObject, URLSessionDataDelegate, @unchecked Sendable {
    |                                                  `- error: cannot find type 'URLSessionDataDelegate' in scope
238 |     private let lock = NSLock()
239 |     private var exchanges: [Int: Exchange] = [:]
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:247:37: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
245 |     }
246 |
247 |     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.
248 |         lock.lock()
249 |         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:257:29: error: cannot find type 'URLRequest' in scope
255 |         task: URLSessionTask,
256 |         willPerformHTTPRedirection response: HTTPURLResponse,
257 |         newRequest request: URLRequest,
    |                             `- error: cannot find type 'URLRequest' in scope
258 |         completionHandler: @escaping @Sendable (URLRequest?) -> Void
259 |     ) {
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:258:49: error: cannot find type 'URLRequest' in scope
256 |         willPerformHTTPRedirection response: HTTPURLResponse,
257 |         newRequest request: URLRequest,
258 |         completionHandler: @escaping @Sendable (URLRequest?) -> Void
    |                                                 `- error: cannot find type 'URLRequest' in scope
259 |     ) {
260 |         // 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:254:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
252 |
253 |     func urlSession(
254 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
255 |         task: URLSessionTask,
256 |         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:255:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
253 |     func urlSession(
254 |         _ session: URLSession,
255 |         task: URLSessionTask,
    |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
256 |         willPerformHTTPRedirection response: HTTPURLResponse,
257 |         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:256:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
254 |         _ session: URLSession,
255 |         task: URLSessionTask,
256 |         willPerformHTTPRedirection response: HTTPURLResponse,
    |                                              `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
257 |         newRequest request: URLRequest,
258 |         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:266:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
264 |
265 |     func urlSession(
266 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
267 |         task: URLSessionTask,
268 |         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:267:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
265 |     func urlSession(
266 |         _ session: URLSession,
267 |         task: URLSessionTask,
    |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
268 |         didSendBodyData bytesSent: Int64,
269 |         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:275:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
273 |     }
274 |
275 |     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.
276 |         exchange(for: dataTask)?.append(data)
277 |     }
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:275:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
273 |     }
274 |
275 |     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.
276 |         exchange(for: dataTask)?.append(data)
277 |     }
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:279:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
277 |     }
278 |
279 |     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.
280 |         exchange(for: task, remove: true)?.complete(error: error, response: task.response)
281 |     }
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:279:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
277 |     }
278 |
279 |     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.
280 |         exchange(for: task, remove: true)?.complete(error: error, response: task.response)
281 |     }
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:201:47: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
199 |                     ErrorDetails(
200 |                         message: "The response body exceeded 8 MiB.",
201 |                         statusCode: (response as? HTTPURLResponse)?.statusCode,
    |                                               `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
202 |                         requestID: (response as? HTTPURLResponse)?
203 |                             .value(forHTTPHeaderField: "x-request-id")
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:201:69: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
199 |                     ErrorDetails(
200 |                         message: "The response body exceeded 8 MiB.",
201 |                         statusCode: (response as? HTTPURLResponse)?.statusCode,
    |                                                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
202 |                         requestID: (response as? HTTPURLResponse)?
203 |                             .value(forHTTPHeaderField: "x-request-id")
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:202:46: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
200 |                         message: "The response body exceeded 8 MiB.",
201 |                         statusCode: (response as? HTTPURLResponse)?.statusCode,
202 |                         requestID: (response as? HTTPURLResponse)?
    |                                              `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
203 |                             .value(forHTTPHeaderField: "x-request-id")
204 |                     )
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:203:30: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
201 |                         statusCode: (response as? HTTPURLResponse)?.statusCode,
202 |                         requestID: (response as? HTTPURLResponse)?
203 |                             .value(forHTTPHeaderField: "x-request-id")
    |                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
204 |                     )
205 |                 )
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:225:35: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
223 |             )
224 |         }
225 |         guard let http = response as? HTTPURLResponse else {
    |                                   `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
226 |             return .failure(.network(message: "The \(label) request did not receive an HTTP response."))
227 |         }
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:225:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
223 |             )
224 |         }
225 |         guard let http = response as? HTTPURLResponse else {
    |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
226 |             return .failure(.network(message: "The \(label) request did not receive an HTTP response."))
227 |         }
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:228:60: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
226 |             return .failure(.network(message: "The \(label) request did not receive an HTTP response."))
227 |         }
228 |         return .success(TransportResponse(statusCode: http.statusCode, headers: http, body: body))
    |                                                            `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
229 |     }
230 |
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