The Swift Package Index logo.Swift Package Index

Build Information

Failed to build NeuralDefend, reference 1.0.0 (6febe6), with Swift 6.1 for Wasm on 17 Oct 2026 03:41:24 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886769-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.1-latest swift build --swift-sdk wasm32-unknown-wasi 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.1
Building package at path:  $PWD
https://github.com/Neural-Defend/NeuralDefend-SDKs.git
https://github.com/Neural-Defend/NeuralDefend-SDKs.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886769-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.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:8209621f35c5a12749e7df75bbcb99eccb508d0196da99f6ac3bcf5f4827df31
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/13] Compiling NeuralDefend Version.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[4/13] Compiling NeuralDefend Transport.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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 'HTTPURLResponse' (aka '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 'HTTPURLResponse' (aka '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 'URLSession' (aka '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 'URLSession' (aka '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
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:18:17: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
 16 |
 17 |     func header(_ name: String) -> String? {
 18 |         headers.value(forHTTPHeaderField: name)
    |                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
 19 |     }
 20 | }
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:30:21: error: cannot find 'OperationQueue' in scope
 28 |     init(configuration: URLSessionConfiguration) {
 29 |         let delegate = TransportDelegate()
 30 |         let queue = OperationQueue()
    |                     `- error: cannot find 'OperationQueue' in scope
 31 |         queue.maxConcurrentOperationCount = 1
 32 |         queue.name = "com.neuraldefend.sdk.transport"
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:34:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 32 |         queue.name = "com.neuraldefend.sdk.transport"
 33 |         self.delegate = delegate
 34 |         self.session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: queue)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 35 |     }
 36 |
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:38:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
 36 |
 37 |     deinit {
 38 |         session.finishTasksAndInvalidate()
    |                 `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
 39 |     }
 40 |
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:49:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
 47 |         onProgress: UploadProgressHandler?
 48 |     ) async throws(NeuroVerifyError) -> TransportResponse {
 49 |         let task = session.uploadTask(with: request, fromFile: bodyFile)
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
 50 |         let exchange = Exchange(
 51 |             task: task,
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:63:27: error: cannot infer contextual base in reference to member 'cancelled'
 61 |             }
 62 |         } onCancel: {
 63 |             exchange.end(.cancelled)
    |                           `- error: cannot infer contextual base in reference to member 'cancelled'
 64 |         }
 65 |         return try outcome.get()
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:124:14: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'resume'
122 |         }
123 |         onProgress?(0, totalBytes)
124 |         task.resume()
    |              `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'resume'
125 |     }
126 |
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:133:32: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
131 |         if shouldCancel { self.reason = reason }
132 |         lock.unlock()
133 |         if shouldCancel { task.cancel() }
    |                                `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
134 |     }
135 |
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:166:54: warning: checking a value with optional type 'URLResponse?' (aka 'Optional<AnyObject>') against type 'HTTPURLResponse' (aka 'AnyObject') succeeds whenever the value is non-nil; did you mean to use '!= nil'?
164 |         // Darwin can complete an upload without delivering didSendBodyData callbacks, and
165 |         // countOfBytesSent can still read 0 at that point, so a response ends the attempt at 100%.
166 |         if reason == nil && error == nil && response is HTTPURLResponse {
    |                                                      `- warning: checking a value with optional type 'URLResponse?' (aka 'Optional<AnyObject>') against type 'HTTPURLResponse' (aka 'AnyObject') succeeds whenever the value is non-nil; did you mean to use '!= nil'?
167 |             progress(sent: totalBytes)
168 |         }
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:201:35: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
199 |             )
200 |         }
201 |         guard let http = response as? HTTPURLResponse else {
    |                                   `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
202 |             return .failure(.network(message: "The \(label) request did not receive an HTTP response."))
203 |         }
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:201:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
199 |             )
200 |         }
201 |         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.
202 |             return .failure(.network(message: "The \(label) request did not receive an HTTP response."))
203 |         }
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:204:60: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
202 |             return .failure(.network(message: "The \(label) request did not receive an HTTP response."))
203 |         }
204 |         return .success(TransportResponse(statusCode: http.statusCode, headers: http, body: body))
    |                                                            `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
205 |     }
206 |
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:226:60: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
224 |         lock.lock()
225 |         defer { lock.unlock() }
226 |         return remove ? exchanges.removeValue(forKey: task.taskIdentifier) : exchanges[task.taskIdentifier]
    |                                                            `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
227 |     }
228 |
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:226:93: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
224 |         lock.lock()
225 |         defer { lock.unlock() }
226 |         return remove ? exchanges.removeValue(forKey: task.taskIdentifier) : exchanges[task.taskIdentifier]
    |                                                                                             `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
227 |     }
228 |
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:238:27: error: 'nil' requires a contextual type
236 |         // The redirect target would receive the API key and the media, so the 3xx response is
237 |         // returned to the caller instead.
238 |         completionHandler(nil)
    |                           `- error: 'nil' requires a contextual type
239 |     }
240 |
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:256:82: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
254 |
255 |     func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
256 |         exchange(for: task, remove: true)?.complete(error: error, response: task.response)
    |                                                                                  `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
257 |     }
258 | }
[5/14] Compiling NeuralDefend Retry.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[6/14] Compiling NeuralDefend Results.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[7/14] Compiling NeuralDefend Wire.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/14] Compiling NeuralDefend MediaInput.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[9/14] Compiling NeuralDefend Multipart.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[10/14] Compiling NeuralDefend Errors.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[11/14] Compiling NeuralDefend JSONValue.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[12/14] Emitting module NeuralDefend
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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: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: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: 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 'HTTPURLResponse' (aka '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 'HTTPURLResponse' (aka '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 'URLSession' (aka '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 'URLSession' (aka '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
[13/14] Compiling NeuralDefend NeuroVerifyClient.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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: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: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: 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/NeuroVerifyClient.swift:195:50: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'copy'
193 |
194 |         // Copy, so later changes by the caller do not affect this client.
195 |         let configuration = sessionConfiguration.copy() as! URLSessionConfiguration
    |                                                  `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'copy'
196 |         // The SDK's own per-attempt timer is authoritative. URLSession's idle timeout is only a
197 |         // backstop, kept above that deadline and in whole seconds because Linux Foundation
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/NeuroVerifyClient.swift:203:45: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
201 |         configuration.httpShouldSetCookies = false
202 |         configuration.urlCache = nil
203 |         configuration.requestCachePolicy = .reloadIgnoringLocalCacheData
    |                                             `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
204 |         self.transport = Transport(configuration: configuration)
205 |     }
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/NeuroVerifyClient.swift:275:23: error: cannot find 'URLRequest' in scope
273 |         components.path = kind.path
274 |         components.queryItems = query.isEmpty ? nil : query
275 |         var request = URLRequest(url: components.url!)
    |                       `- error: cannot find 'URLRequest' in scope
276 |         request.httpMethod = "POST"
277 |         request.setValue("application/json", forHTTPHeaderField: "Accept")
/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,
[14/14] Compiling NeuralDefend PhotosPickerSupport.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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: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: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: 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/NeuroVerifyClient.swift:195:50: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'copy'
193 |
194 |         // Copy, so later changes by the caller do not affect this client.
195 |         let configuration = sessionConfiguration.copy() as! URLSessionConfiguration
    |                                                  `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'copy'
196 |         // The SDK's own per-attempt timer is authoritative. URLSession's idle timeout is only a
197 |         // backstop, kept above that deadline and in whole seconds because Linux Foundation
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/NeuroVerifyClient.swift:203:45: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
201 |         configuration.httpShouldSetCookies = false
202 |         configuration.urlCache = nil
203 |         configuration.requestCachePolicy = .reloadIgnoringLocalCacheData
    |                                             `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
204 |         self.transport = Transport(configuration: configuration)
205 |     }
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/NeuroVerifyClient.swift:275:23: error: cannot find 'URLRequest' in scope
273 |         components.path = kind.path
274 |         components.queryItems = query.isEmpty ? nil : query
275 |         var request = URLRequest(url: components.url!)
    |                       `- error: cannot find 'URLRequest' in scope
276 |         request.httpMethod = "POST"
277 |         request.setValue("application/json", forHTTPHeaderField: "Accept")
/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,
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886769-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.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:8209621f35c5a12749e7df75bbcb99eccb508d0196da99f6ac3bcf5f4827df31
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/12] Compiling NeuralDefend Version.swift
[3/12] Compiling NeuralDefend Retry.swift
[4/12] Compiling NeuralDefend Transport.swift
/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 'HTTPURLResponse' (aka '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 'HTTPURLResponse' (aka '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 'URLSession' (aka '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 'URLSession' (aka '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
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:18:17: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
 16 |
 17 |     func header(_ name: String) -> String? {
 18 |         headers.value(forHTTPHeaderField: name)
    |                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
 19 |     }
 20 | }
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:30:21: error: cannot find 'OperationQueue' in scope
 28 |     init(configuration: URLSessionConfiguration) {
 29 |         let delegate = TransportDelegate()
 30 |         let queue = OperationQueue()
    |                     `- error: cannot find 'OperationQueue' in scope
 31 |         queue.maxConcurrentOperationCount = 1
 32 |         queue.name = "com.neuraldefend.sdk.transport"
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:34:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 32 |         queue.name = "com.neuraldefend.sdk.transport"
 33 |         self.delegate = delegate
 34 |         self.session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: queue)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 35 |     }
 36 |
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:38:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
 36 |
 37 |     deinit {
 38 |         session.finishTasksAndInvalidate()
    |                 `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
 39 |     }
 40 |
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:49:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
 47 |         onProgress: UploadProgressHandler?
 48 |     ) async throws(NeuroVerifyError) -> TransportResponse {
 49 |         let task = session.uploadTask(with: request, fromFile: bodyFile)
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
 50 |         let exchange = Exchange(
 51 |             task: task,
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:63:27: error: cannot infer contextual base in reference to member 'cancelled'
 61 |             }
 62 |         } onCancel: {
 63 |             exchange.end(.cancelled)
    |                           `- error: cannot infer contextual base in reference to member 'cancelled'
 64 |         }
 65 |         return try outcome.get()
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:124:14: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'resume'
122 |         }
123 |         onProgress?(0, totalBytes)
124 |         task.resume()
    |              `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'resume'
125 |     }
126 |
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:133:32: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
131 |         if shouldCancel { self.reason = reason }
132 |         lock.unlock()
133 |         if shouldCancel { task.cancel() }
    |                                `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
134 |     }
135 |
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:166:54: warning: checking a value with optional type 'URLResponse?' (aka 'Optional<AnyObject>') against type 'HTTPURLResponse' (aka 'AnyObject') succeeds whenever the value is non-nil; did you mean to use '!= nil'?
164 |         // Darwin can complete an upload without delivering didSendBodyData callbacks, and
165 |         // countOfBytesSent can still read 0 at that point, so a response ends the attempt at 100%.
166 |         if reason == nil && error == nil && response is HTTPURLResponse {
    |                                                      `- warning: checking a value with optional type 'URLResponse?' (aka 'Optional<AnyObject>') against type 'HTTPURLResponse' (aka 'AnyObject') succeeds whenever the value is non-nil; did you mean to use '!= nil'?
167 |             progress(sent: totalBytes)
168 |         }
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:201:35: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
199 |             )
200 |         }
201 |         guard let http = response as? HTTPURLResponse else {
    |                                   `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
202 |             return .failure(.network(message: "The \(label) request did not receive an HTTP response."))
203 |         }
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:201:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
199 |             )
200 |         }
201 |         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.
202 |             return .failure(.network(message: "The \(label) request did not receive an HTTP response."))
203 |         }
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:204:60: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
202 |             return .failure(.network(message: "The \(label) request did not receive an HTTP response."))
203 |         }
204 |         return .success(TransportResponse(statusCode: http.statusCode, headers: http, body: body))
    |                                                            `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
205 |     }
206 |
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:226:60: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
224 |         lock.lock()
225 |         defer { lock.unlock() }
226 |         return remove ? exchanges.removeValue(forKey: task.taskIdentifier) : exchanges[task.taskIdentifier]
    |                                                            `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
227 |     }
228 |
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:226:93: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
224 |         lock.lock()
225 |         defer { lock.unlock() }
226 |         return remove ? exchanges.removeValue(forKey: task.taskIdentifier) : exchanges[task.taskIdentifier]
    |                                                                                             `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
227 |     }
228 |
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:238:27: error: 'nil' requires a contextual type
236 |         // The redirect target would receive the API key and the media, so the 3xx response is
237 |         // returned to the caller instead.
238 |         completionHandler(nil)
    |                           `- error: 'nil' requires a contextual type
239 |     }
240 |
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/Transport.swift:256:82: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
254 |
255 |     func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
256 |         exchange(for: task, remove: true)?.complete(error: error, response: task.response)
    |                                                                                  `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
257 |     }
258 | }
[5/13] Compiling NeuralDefend Wire.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/13] Compiling NeuralDefend Errors.swift
[7/13] Compiling NeuralDefend JSONValue.swift
[8/13] Emitting module 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: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: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: 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 'HTTPURLResponse' (aka '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 'HTTPURLResponse' (aka '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 'URLSession' (aka '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 'URLSession' (aka '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
[9/13] Compiling NeuralDefend Results.swift
[10/13] Compiling NeuralDefend MediaInput.swift
[11/13] Compiling NeuralDefend Multipart.swift
[12/13] Compiling NeuralDefend NeuroVerifyClient.swift
/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: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: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: 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/NeuroVerifyClient.swift:195:50: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'copy'
193 |
194 |         // Copy, so later changes by the caller do not affect this client.
195 |         let configuration = sessionConfiguration.copy() as! URLSessionConfiguration
    |                                                  `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'copy'
196 |         // The SDK's own per-attempt timer is authoritative. URLSession's idle timeout is only a
197 |         // backstop, kept above that deadline and in whole seconds because Linux Foundation
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/NeuroVerifyClient.swift:203:45: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
201 |         configuration.httpShouldSetCookies = false
202 |         configuration.urlCache = nil
203 |         configuration.requestCachePolicy = .reloadIgnoringLocalCacheData
    |                                             `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
204 |         self.transport = Transport(configuration: configuration)
205 |     }
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/NeuroVerifyClient.swift:275:23: error: cannot find 'URLRequest' in scope
273 |         components.path = kind.path
274 |         components.queryItems = query.isEmpty ? nil : query
275 |         var request = URLRequest(url: components.url!)
    |                       `- error: cannot find 'URLRequest' in scope
276 |         request.httpMethod = "POST"
277 |         request.setValue("application/json", forHTTPHeaderField: "Accept")
/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,
[13/13] Compiling NeuralDefend PhotosPickerSupport.swift
/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: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: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: 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/NeuroVerifyClient.swift:195:50: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'copy'
193 |
194 |         // Copy, so later changes by the caller do not affect this client.
195 |         let configuration = sessionConfiguration.copy() as! URLSessionConfiguration
    |                                                  `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'copy'
196 |         // The SDK's own per-attempt timer is authoritative. URLSession's idle timeout is only a
197 |         // backstop, kept above that deadline and in whole seconds because Linux Foundation
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/NeuroVerifyClient.swift:203:45: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
201 |         configuration.httpShouldSetCookies = false
202 |         configuration.urlCache = nil
203 |         configuration.requestCachePolicy = .reloadIgnoringLocalCacheData
    |                                             `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
204 |         self.transport = Transport(configuration: configuration)
205 |     }
/host/spi-builder-workspace/packages/swift/Sources/NeuralDefend/NeuroVerifyClient.swift:275:23: error: cannot find 'URLRequest' in scope
273 |         components.path = kind.path
274 |         components.queryItems = query.isEmpty ? nil : query
275 |         var request = URLRequest(url: components.url!)
    |                       `- error: cannot find 'URLRequest' in scope
276 |         request.httpMethod = "POST"
277 |         request.setValue("application/json", forHTTPHeaderField: "Accept")
/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,
BUILD FAILURE 6.1 wasm