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>&1Build 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: [1;31merror: [1;39m'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m103 |[0;0m apiKey: String,
[0;36m104 |[0;0m options: Options = Options(),
[0;36m105 |[0;0m sessionConfiguration: [4;39mURLSessionConfiguration[0;0m = .ephemeral
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m106 |[0;0m ) throws {
[0;36m107 |[0;0m try self.init(
Foundation.URLSessionConfiguration:2:18: [1;39mnote: [1;39m'URLSessionConfiguration' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionConfiguration = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionConfiguration' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/NeuroVerifyClient.swift:105:58: [1;31merror: [1;39mtype 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'[0;0m
[0;36m103 |[0;0m apiKey: String,
[0;36m104 |[0;0m options: Options = Options(),
[0;36m105 |[0;0m sessionConfiguration: URLSessionConfiguration = [4;39m.ephemeral[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'[0;0m
[0;36m106 |[0;0m ) throws {
[0;36m107 |[0;0m try self.init(
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/NeuroVerifyClient.swift:105:58: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m103 |[0;0m apiKey: String,
[0;36m104 |[0;0m options: Options = Options(),
[0;36m105 |[0;0m sessionConfiguration: URLSessionConfiguration = .ephemeral
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m106 |[0;0m ) throws {
[0;36m107 |[0;0m try self.init(
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/NeuroVerifyClient.swift:121:31: [1;31merror: [1;39m'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m119 |[0;0m apiKey: String,
[0;36m120 |[0;0m options: Options = Options(),
[0;36m121 |[0;0m sessionConfiguration: [4;39mURLSessionConfiguration[0;0m = .ephemeral
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m122 |[0;0m ) throws -> NeuroVerifyClient {
[0;36m123 |[0;0m var pinned = options
Foundation.URLSessionConfiguration:2:18: [1;39mnote: [1;39m'URLSessionConfiguration' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionConfiguration = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionConfiguration' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/NeuroVerifyClient.swift:121:58: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m119 |[0;0m apiKey: String,
[0;36m120 |[0;0m options: Options = Options(),
[0;36m121 |[0;0m sessionConfiguration: URLSessionConfiguration = .ephemeral
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m122 |[0;0m ) throws -> NeuroVerifyClient {
[0;36m123 |[0;0m var pinned = options
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/NeuroVerifyClient.swift:121:58: [1;31merror: [1;39mtype 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'[0;0m
[0;36m119 |[0;0m apiKey: String,
[0;36m120 |[0;0m options: Options = Options(),
[0;36m121 |[0;0m sessionConfiguration: URLSessionConfiguration = [4;39m.ephemeral[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'[0;0m
[0;36m122 |[0;0m ) throws -> NeuroVerifyClient {
[0;36m123 |[0;0m var pinned = options
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/NeuroVerifyClient.swift:133:31: [1;31merror: [1;39m'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m131 |[0;0m public static func fromEnvironment(
[0;36m132 |[0;0m options: Options = Options(),
[0;36m133 |[0;0m sessionConfiguration: [4;39mURLSessionConfiguration[0;0m = .ephemeral,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m134 |[0;0m environment: [String: String] = ProcessInfo.processInfo.environment
[0;36m135 |[0;0m ) throws -> NeuroVerifyClient {
Foundation.URLSessionConfiguration:2:18: [1;39mnote: [1;39m'URLSessionConfiguration' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionConfiguration = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionConfiguration' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/NeuroVerifyClient.swift:133:58: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m131 |[0;0m public static func fromEnvironment(
[0;36m132 |[0;0m options: Options = Options(),
[0;36m133 |[0;0m sessionConfiguration: URLSessionConfiguration = .ephemeral,
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m134 |[0;0m environment: [String: String] = ProcessInfo.processInfo.environment
[0;36m135 |[0;0m ) throws -> NeuroVerifyClient {
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/NeuroVerifyClient.swift:133:58: [1;31merror: [1;39mtype 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'[0;0m
[0;36m131 |[0;0m public static func fromEnvironment(
[0;36m132 |[0;0m options: Options = Options(),
[0;36m133 |[0;0m sessionConfiguration: URLSessionConfiguration = [4;39m.ephemeral[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'[0;0m
[0;36m134 |[0;0m environment: [String: String] = ProcessInfo.processInfo.environment
[0;36m135 |[0;0m ) throws -> NeuroVerifyClient {
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/NeuroVerifyClient.swift:160:31: [1;31merror: [1;39m'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m158 |[0;0m apiKey: String,
[0;36m159 |[0;0m options: Options,
[0;36m160 |[0;0m sessionConfiguration: [4;39mURLSessionConfiguration[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m161 |[0;0m allowInsecureForTesting: Bool,
[0;36m162 |[0;0m runtime: ClientRuntime
Foundation.URLSessionConfiguration:2:18: [1;39mnote: [1;39m'URLSessionConfiguration' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionConfiguration = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionConfiguration' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:14:18: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m12 |[0;0m struct TransportResponse: Sendable {
[0;36m13 |[0;0m let statusCode: Int
[0;36m14 |[0;0m let headers: [4;39mHTTPURLResponse[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m15 |[0;0m let body: Data
[0;36m16 |[0;0m
Foundation.HTTPURLResponse:2:18: [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias HTTPURLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:14:9: [1;31merror: [1;39mstored property 'headers' of 'Sendable'-conforming struct 'TransportResponse' has non-Sendable type 'AnyObject'[0;0m
[0;36m12 |[0;0m struct TransportResponse: Sendable {
[0;36m13 |[0;0m let statusCode: Int
[0;36m14 |[0;0m let headers: HTTPURLResponse
[0;36m|[0;0m `- [1;31merror: [1;39mstored property 'headers' of 'Sendable'-conforming struct 'TransportResponse' has non-Sendable type 'AnyObject'[0;0m
[0;36m15 |[0;0m let body: Data
[0;36m16 |[0;0m
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:25:26: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m23 |[0;0m /// its own deadline, and cancelling the calling task cancels the transfer.
[0;36m24 |[0;0m final class Transport: Sendable {
[0;36m25 |[0;0m private let session: [4;39mURLSession[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m26 |[0;0m private let delegate: TransportDelegate
[0;36m27 |[0;0m
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:28:25: [1;31merror: [1;39m'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m26 |[0;0m private let delegate: TransportDelegate
[0;36m27 |[0;0m
[0;36m28 |[0;0m init(configuration: [4;39mURLSessionConfiguration[0;0m) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m29 |[0;0m let delegate = TransportDelegate()
[0;36m30 |[0;0m let queue = OperationQueue()
Foundation.URLSessionConfiguration:2:18: [1;39mnote: [1;39m'URLSessionConfiguration' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionConfiguration = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionConfiguration' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:42:20: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m40 |[0;0m
[0;36m41 |[0;0m func upload(
[0;36m42 |[0;0m _ request: [4;39mURLRequest[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m43 |[0;0m bodyFile: URL,
[0;36m44 |[0;0m totalBytes: Int64,
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:25:17: [1;31merror: [1;39mstored property 'session' of 'Sendable'-conforming class 'Transport' has non-Sendable type 'AnyObject'[0;0m
[0;36m23 |[0;0m /// its own deadline, and cancelling the calling task cancels the transfer.
[0;36m24 |[0;0m final class Transport: Sendable {
[0;36m25 |[0;0m private let session: URLSession
[0;36m|[0;0m `- [1;31merror: [1;39mstored property 'session' of 'Sendable'-conforming class 'Transport' has non-Sendable type 'AnyObject'[0;0m
[0;36m26 |[0;0m private let delegate: TransportDelegate
[0;36m27 |[0;0m
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:77:23: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m75 |[0;0m
[0;36m76 |[0;0m private let lock = NSLock()
[0;36m77 |[0;0m private let task: [4;39mURLSessionTask[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m78 |[0;0m private let totalBytes: Int64
[0;36m79 |[0;0m private let timeout: TimeInterval
Foundation.URLSessionTask:2:18: [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:90:15: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m88 |[0;0m
[0;36m89 |[0;0m init(
[0;36m90 |[0;0m task: [4;39mURLSessionTask[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m91 |[0;0m totalBytes: Int64,
[0;36m92 |[0;0m timeout: TimeInterval,
Foundation.URLSessionTask:2:18: [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:151:50: [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m149 |[0;0m }
[0;36m150 |[0;0m
[0;36m151 |[0;0m func complete(error: (any Error)?, response: [4;39mURLResponse[0;0m?) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m152 |[0;0m lock.lock()
[0;36m153 |[0;0m guard !finished, let continuation else {
Foundation.URLResponse:2:18: [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:175:19: [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m173 |[0;0m reason: EndReason?,
[0;36m174 |[0;0m error: (any Error)?,
[0;36m175 |[0;0m response: [4;39mURLResponse[0;0m?,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m176 |[0;0m body: Data
[0;36m177 |[0;0m ) -> Result<TransportResponse, NeuroVerifyError> {
Foundation.URLResponse:2:18: [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:213:50: [1;31merror: [1;39mcannot find type 'URLSessionDataDelegate' in scope[0;0m
[0;36m211 |[0;0m }
[0;36m212 |[0;0m
[0;36m213 |[0;0m private final class TransportDelegate: NSObject, [4;39mURLSessionDataDelegate[0;0m, @unchecked Sendable {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLSessionDataDelegate' in scope[0;0m
[0;36m214 |[0;0m private let lock = NSLock()
[0;36m215 |[0;0m private var exchanges: [Int: Exchange] = [:]
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:223:37: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m221 |[0;0m }
[0;36m222 |[0;0m
[0;36m223 |[0;0m private func exchange(for task: [4;39mURLSessionTask[0;0m, remove: Bool = false) -> Exchange? {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m224 |[0;0m lock.lock()
[0;36m225 |[0;0m defer { lock.unlock() }
Foundation.URLSessionTask:2:18: [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:233:29: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m231 |[0;0m task: URLSessionTask,
[0;36m232 |[0;0m willPerformHTTPRedirection response: HTTPURLResponse,
[0;36m233 |[0;0m newRequest request: [4;39mURLRequest[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m234 |[0;0m completionHandler: @escaping @Sendable (URLRequest?) -> Void
[0;36m235 |[0;0m ) {
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:234:49: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m232 |[0;0m willPerformHTTPRedirection response: HTTPURLResponse,
[0;36m233 |[0;0m newRequest request: URLRequest,
[0;36m234 |[0;0m completionHandler: @escaping @Sendable ([4;39mURLRequest[0;0m?) -> Void
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m235 |[0;0m ) {
[0;36m236 |[0;0m // 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: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m228 |[0;0m
[0;36m229 |[0;0m func urlSession(
[0;36m230 |[0;0m _ session: [4;39mURLSession[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m231 |[0;0m task: URLSessionTask,
[0;36m232 |[0;0m willPerformHTTPRedirection response: HTTPURLResponse,
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:231:15: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m229 |[0;0m func urlSession(
[0;36m230 |[0;0m _ session: URLSession,
[0;36m231 |[0;0m task: [4;39mURLSessionTask[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m232 |[0;0m willPerformHTTPRedirection response: HTTPURLResponse,
[0;36m233 |[0;0m newRequest request: URLRequest,
Foundation.URLSessionTask:2:18: [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:232:46: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m230 |[0;0m _ session: URLSession,
[0;36m231 |[0;0m task: URLSessionTask,
[0;36m232 |[0;0m willPerformHTTPRedirection response: [4;39mHTTPURLResponse[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m233 |[0;0m newRequest request: URLRequest,
[0;36m234 |[0;0m completionHandler: @escaping @Sendable (URLRequest?) -> Void
Foundation.HTTPURLResponse:2:18: [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias HTTPURLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:242:20: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m240 |[0;0m
[0;36m241 |[0;0m func urlSession(
[0;36m242 |[0;0m _ session: [4;39mURLSession[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m243 |[0;0m task: URLSessionTask,
[0;36m244 |[0;0m didSendBodyData bytesSent: Int64,
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:243:15: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m241 |[0;0m func urlSession(
[0;36m242 |[0;0m _ session: URLSession,
[0;36m243 |[0;0m task: [4;39mURLSessionTask[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m244 |[0;0m didSendBodyData bytesSent: Int64,
[0;36m245 |[0;0m totalBytesSent: Int64,
Foundation.URLSessionTask:2:18: [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:251:32: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m249 |[0;0m }
[0;36m250 |[0;0m
[0;36m251 |[0;0m func urlSession(_ session: [4;39mURLSession[0;0m, dataTask: URLSessionDataTask, didReceive data: Data) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m252 |[0;0m exchange(for: dataTask)?.append(data)
[0;36m253 |[0;0m }
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:251:54: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m249 |[0;0m }
[0;36m250 |[0;0m
[0;36m251 |[0;0m func urlSession(_ session: URLSession, dataTask: [4;39mURLSessionDataTask[0;0m, didReceive data: Data) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m252 |[0;0m exchange(for: dataTask)?.append(data)
[0;36m253 |[0;0m }
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:255:32: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m253 |[0;0m }
[0;36m254 |[0;0m
[0;36m255 |[0;0m func urlSession(_ session: [4;39mURLSession[0;0m, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m256 |[0;0m exchange(for: task, remove: true)?.complete(error: error, response: task.response)
[0;36m257 |[0;0m }
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:255:50: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m253 |[0;0m }
[0;36m254 |[0;0m
[0;36m255 |[0;0m func urlSession(_ session: URLSession, task: [4;39mURLSessionTask[0;0m, didCompleteWithError error: (any Error)?) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m256 |[0;0m exchange(for: task, remove: true)?.complete(error: error, response: task.response)
[0;36m257 |[0;0m }
Foundation.URLSessionTask:2:18: [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
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