Build Information
Failed to build SimpleNetworking, reference main (dd786c), with Swift 6.4 for Wasm on 25 Sep 2026 19:25:04 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344847-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/0xWDG/SimpleNetworking.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/0xWDG/SimpleNetworking
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at dd786cd Fix lint error
Cloned https://github.com/0xWDG/SimpleNetworking.git
Revision (git rev-parse @):
dd786cdde42a983874689ccbb2d2dea537d9f48d
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/0xWDG/SimpleNetworking.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.4
Building package at path: $PWD
https://github.com/0xWDG/SimpleNetworking.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344847-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1
wasm-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:4328fdb43c680d205c1d6761b1e3267aa38277eefdda9ddfb17b6a0f1a77857a
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest
Building for debugging...
[Planning deferred tasks]
error: SwiftCompile normal wasm32 failed with a nonzero exit code. Command line: cd /host
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:52:41: [1;31merror: [1;39m'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers[0;0m
[0;36m50 |[0;0m
[0;36m51 |[0;0m /// custom session
[0;36m52 |[0;0m internal var session: URLSession? = [4;39mURLSession[0;0m(configuration: .ephemeral)
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers[0;0m
[0;36m53 |[0;0m
[0;36m54 |[0;0m /// Streaming response handler for connection open event
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:52:41: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m50 |[0;0m
[0;36m51 |[0;0m /// custom session
[0;36m52 |[0;0m internal var session: URLSession? = [4;39mURLSession(configuration: .ephemeral)[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m53 |[0;0m
[0;36m54 |[0;0m /// Streaming response handler for connection open event
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:70:28: [1;31merror: [1;39mcannot find type 'URLSessionWebSocketTask' in scope[0;0m
[0;36m68 |[0;0m
[0;36m69 |[0;0m /// Websocket socket
[0;36m70 |[0;0m internal var WSSocket: [4;39mURLSessionWebSocketTask[0;0m?
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLSessionWebSocketTask' in scope[0;0m
[0;36m71 |[0;0m
[0;36m72 |[0;0m /// Websocket connection tries
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:28:26: [1;31merror: [1;39m'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m26 |[0;0m
[0;36m27 |[0;0m /// All the cookies
[0;36m28 |[0;0m public var cookies: [[4;39mHTTPCookie[0;0m]? = []
[0;36m|[0;0m `- [1;31merror: [1;39m'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m29 |[0;0m
[0;36m30 |[0;0m /// Protects mutable shared state used by concurrent async requests.
Foundation.HTTPCookie:2:18: [1;39mnote: [1;39m'HTTPCookie' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias HTTPCookie = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'HTTPCookie' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:64:24: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m62 |[0;0m
[0;36m63 |[0;0m /// URLSession Data Task
[0;36m64 |[0;0m internal var task: [4;39mURLSessionDataTask[0;0m?
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m65 |[0;0m
[0;36m66 |[0;0m /// EventSource session
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:67:29: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m65 |[0;0m
[0;36m66 |[0;0m /// EventSource session
[0;36m67 |[0;0m internal var ESsession: [4;39mURLSession[0;0m?
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m68 |[0;0m
[0;36m69 |[0;0m /// Websocket socket
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:117:30: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m115 |[0;0m /// Set the session
[0;36m116 |[0;0m /// - Parameter session: session
[0;36m117 |[0;0m public func set(session: [4;39mURLSession[0;0m) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m118 |[0;0m self.session = session
[0;36m119 |[0;0m }
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:137:36: [1;31merror: [1;39m'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m135 |[0;0m /// Add a cookie to the storage
[0;36m136 |[0;0m /// - Parameter add: cookie
[0;36m137 |[0;0m public func cookie(add cookie: [4;39mHTTPCookie[0;0m) {
[0;36m|[0;0m `- [1;31merror: [1;39m'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m138 |[0;0m stateLock.lock()
[0;36m139 |[0;0m defer { stateLock.unlock() }
Foundation.HTTPCookie:2:18: [1;39mnote: [1;39m'HTTPCookie' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias HTTPCookie = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'HTTPCookie' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:161:29: [1;31merror: [1;39m'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m159 |[0;0m /// Add a cookie to the storage
[0;36m160 |[0;0m /// - Parameter add: cookie
[0;36m161 |[0;0m public func add(cookie: [4;39mHTTPCookie[0;0m) {
[0;36m|[0;0m `- [1;31merror: [1;39m'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m162 |[0;0m stateLock.lock()
[0;36m163 |[0;0m defer { stateLock.unlock() }
Foundation.HTTPCookie:2:18: [1;39mnote: [1;39m'HTTPCookie' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias HTTPCookie = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'HTTPCookie' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:82:38: [1;31merror: [1;39mcannot find type 'URLSessionDataDelegate' in scope[0;0m
[0;36m80 |[0;0m }
[0;36m81 |[0;0m
[0;36m82 |[0;0m class EventSourceDelegate: NSObject, [4;39mURLSessionDataDelegate[0;0m, @unchecked Sendable {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLSessionDataDelegate' in scope[0;0m
[0;36m83 |[0;0m internal var onMessage: ((Data) -> Void)?
[0;36m84 |[0;0m
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:89:39: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m87 |[0;0m }
[0;36m88 |[0;0m
[0;36m89 |[0;0m public func urlSession(_ session: [4;39mURLSession[0;0m, dataTask: URLSessionDataTask, didReceive data: Data) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m90 |[0;0m onMessage?(data)
[0;36m91 |[0;0m }
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:89:61: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m87 |[0;0m }
[0;36m88 |[0;0m
[0;36m89 |[0;0m public func urlSession(_ session: URLSession, dataTask: [4;39mURLSessionDataTask[0;0m, didReceive data: Data) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m90 |[0;0m onMessage?(data)
[0;36m91 |[0;0m }
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:19:40: [1;31merror: [1;39m'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m17 |[0;0m
[0;36m18 |[0;0m extension SimpleNetworking {
[0;36m19 |[0;0m internal func cookieSnapshot() -> [[4;39mHTTPCookie[0;0m] {
[0;36m|[0;0m `- [1;31merror: [1;39m'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m20 |[0;0m stateLock.lock()
[0;36m21 |[0;0m defer { stateLock.unlock() }
Foundation.HTTPCookie:2:18: [1;39mnote: [1;39m'HTTPCookie' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias HTTPCookie = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'HTTPCookie' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:26:54: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m24 |[0;0m }
[0;36m25 |[0;0m
[0;36m26 |[0;0m internal func addStoredCookies(to request: inout [4;39mURLRequest[0;0m) {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m27 |[0;0m stateLock.lock()
[0;36m28 |[0;0m let storedCookies = cookies ?? []
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:39:46: [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m37 |[0;0m }
[0;36m38 |[0;0m
[0;36m39 |[0;0m internal func saveCookies(from response: [4;39mURLResponse[0;0m?) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m40 |[0;0m guard let httpResponse = response as? HTTPURLResponse,
[0;36m41 |[0;0m let url = httpResponse.url else {
Foundation.URLResponse:2:18: [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:27:23: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m25 |[0;0m /// - Returns: ``NetworkResponse``
[0;36m26 |[0;0m internal func exec( // swiftlint:disable:this function_body_length
[0;36m27 |[0;0m with request: [4;39mURLRequest[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m28 |[0;0m file: String = #file,
[0;36m29 |[0;0m line: Int = #line,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:111:23: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m109 |[0;0m /// - Returns: ``NetworkResponse``
[0;36m110 |[0;0m internal func exec(
[0;36m111 |[0;0m with request: [4;39mURLRequest[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m112 |[0;0m completionHandler: @escaping @Sendable (NetworkResponse) -> Void,
[0;36m113 |[0;0m file: String = #file,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:55:39: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m53 |[0;0m }
[0;36m54 |[0;0m
[0;36m55 |[0;0m internal func networkLog(request: [4;39mURLRequest[0;0m?,
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m56 |[0;0m session: URLSession?,
[0;36m57 |[0;0m response: URLResponse?,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:56:39: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m54 |[0;0m
[0;36m55 |[0;0m internal func networkLog(request: URLRequest?,
[0;36m56 |[0;0m session: [4;39mURLSession[0;0m?,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m57 |[0;0m response: URLResponse?,
[0;36m58 |[0;0m data: Data?,
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:57:40: [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m55 |[0;0m internal func networkLog(request: URLRequest?,
[0;36m56 |[0;0m session: URLSession?,
[0;36m57 |[0;0m response: [4;39mURLResponse[0;0m?,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m58 |[0;0m data: Data?,
[0;36m59 |[0;0m file: String = #file,
Foundation.URLResponse:2:18: [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:76:46: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m74 |[0;0m }
[0;36m75 |[0;0m
[0;36m76 |[0;0m internal func networkLogRequest(request: [4;39mURLRequest[0;0m) {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m77 |[0;0m if [
[0;36m78 |[0;0m debug.requestURL,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:116:48: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m114 |[0;0m }
[0;36m115 |[0;0m
[0;36m116 |[0;0m internal func networkLogResponse(response: [4;39mHTTPURLResponse[0;0m) {
[0;36m|[0;0m `- [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m117 |[0;0m log("HTTPURLResponse: HTTP \(response.statusCode)")
[0;36m118 |[0;0m for (header, cont) in response.allHeaderFields {
Foundation.HTTPURLResponse:2:18: [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias HTTPURLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/request.swift:107:46: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m105 |[0;0m }
[0;36m106 |[0;0m
[0;36m107 |[0;0m internal func createRequest(url: URL) -> [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m108 |[0;0m // Create a URL Request
[0;36m109 |[0;0m var request = URLRequest(url: url)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:89:88: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m87 |[0;0m /// - uploadData: The multipart upload data
[0;36m88 |[0;0m /// - Returns: URLRequest or nil if URL is invalid
[0;36m89 |[0;0m private func createUploadRequest(path: String, uploadData: MultipartUploadData) -> [4;39mURLRequest[0;0m? {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m90 |[0;0m guard let siteURL = self.isURL(path) else {
[0;36m91 |[0;0m return nil
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:55:29: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m53 |[0;0m
[0;36m54 |[0;0m /// Request
[0;36m55 |[0;0m public var request: [4;39mURLRequest[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m56 |[0;0m
[0;36m57 |[0;0m /// Request as cURL command.
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:34:30: [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m32 |[0;0m
[0;36m33 |[0;0m /// URL Response
[0;36m34 |[0;0m public var response: [4;39mURLResponse[0;0m?
[0;36m|[0;0m `- [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m35 |[0;0m
[0;36m36 |[0;0m /// HTTP Status code
Foundation.URLResponse:2:18: [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:52:30: [1;31merror: [1;39m'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m50 |[0;0m
[0;36m51 |[0;0m /// Received cookies.
[0;36m52 |[0;0m public var cookies: [[4;39mHTTPCookie[0;0m]?
[0;36m|[0;0m `- [1;31merror: [1;39m'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m53 |[0;0m
[0;36m54 |[0;0m /// Request
Foundation.HTTPCookie:2:18: [1;39mnote: [1;39m'HTTPCookie' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias HTTPCookie = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'HTTPCookie' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/SNMock.swift:21:26: [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m19 |[0;0m
[0;36m20 |[0;0m /// Mocked HTTP Response
[0;36m21 |[0;0m public let response: [4;39mURLResponse[0;0m?
[0;36m|[0;0m `- [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m22 |[0;0m
[0;36m23 |[0;0m /// Mocked HTTP Response status code
Foundation.URLResponse:2:18: [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/SNMock.swift:35:40: [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m33 |[0;0m /// - statusCode: Mocked HTTP Response status code
[0;36m34 |[0;0m /// - error: Mocked Error (if any)
[0;36m35 |[0;0m public init(data: Data?, response: [4;39mURLResponse[0;0m?, statusCode: Int? = 200, error: Error?) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m36 |[0;0m self.data = data
[0;36m37 |[0;0m self.response = response
Foundation.URLResponse:2:18: [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/SNMock.swift:47:42: [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m45 |[0;0m /// - statusCode: Mocked HTTP Response status code
[0;36m46 |[0;0m /// - error: Mocked Error (if any)
[0;36m47 |[0;0m public init(data: String?, response: [4;39mURLResponse[0;0m?, statusCode: Int? = 200, error: Error?) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m48 |[0;0m self.data = data?.data(using: .utf8)
[0;36m49 |[0;0m self.response = response
Foundation.URLResponse:2:18: [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
Failed frontend command:
/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/.build/out/Intermediates.noindex/SimpleNetworking.build/Debug-webassembly-wasm32/SimpleNetworking-t.build/DerivedSources/resource_bundle_accessor.swift /host/spi-builder-workspace/Sources/SimpleNetworking/Helpers/isURL.swift /host/spi-builder-workspace/Sources/SimpleNetworking/Helpers/toJSON.swift /host/spi-builder-workspace/Sources/SimpleNetworking/PropertyWrappers/Delete.swift /host/spi-builder-workspace/Sources/SimpleNetworking/PropertyWrappers/Get.swift /host/spi-builder-workspace/Sources/SimpleNetworking/PropertyWrappers/Post.swift /host/spi-builder-workspace/Sources/SimpleNetworking/PropertyWrappers/Put.swift /host/spi-builder-workspace/Sources/SimpleNetworking/PropertyWrappers/SimpleNetworkingWrapper.swift /host/spi-builder-workspace/Sources/SimpleNetworking/PropertyWrappers/Upload.swift /host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift /host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift /host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/WebSocket.swift /host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift /host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/createHTTPBody.swift /host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift /host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift /host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/request.swift /host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift /host/spi-builder-workspace/Sources/SimpleNetworking/Structs/Debug.swift /host/spi-builder-workspace/Sources/SimpleNetworking/Structs/FileUpload.swift /host/spi-builder-workspace/Sources/SimpleNetworking/Structs/HTTPHeader.swift /host/spi-builder-workspace/Sources/SimpleNetworking/Structs/HTTPMethod.swift /host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift /host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkingError.swift /host/spi-builder-workspace/Sources/SimpleNetworking/Structs/POSTEncoding.swift /host/spi-builder-workspace/Sources/SimpleNetworking/Structs/SNMock.swift -target wasm32-unknown-wasip1 -disable-objc-interop -sdk /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -sysroot /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -I /host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_AVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature StrictConcurrency -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /usr/lib/swift/host/plugins/testing\#/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -resource-dir /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static -use-static-resource-dir -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -resource-dir -Xcc /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/SimpleNetworking.build/Debug-webassembly-wasm32/SimpleNetworking-t.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/SimpleNetworking.build/Debug-webassembly-wasm32/SimpleNetworking-t.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/SimpleNetworking.build/Debug-webassembly-wasm32/SimpleNetworking-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name SimpleNetworking -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/SimpleNetworking.build/Debug-webassembly-wasm32/SimpleNetworking-t.build/Objects-normal/wasm32/SimpleNetworking_const_extract_protocols.json -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -emit-module-doc-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SimpleNetworking.build/Debug-webassembly-wasm32/SimpleNetworking-t.build/Objects-normal/wasm32/Modules/SimpleNetworking.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SimpleNetworking.build/Debug-webassembly-wasm32/SimpleNetworking-t.build/Objects-normal/wasm32/Modules/SimpleNetworking.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SimpleNetworking.build/Debug-webassembly-wasm32/SimpleNetworking-t.build/Objects-normal/wasm32/SimpleNetworking-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SimpleNetworking.build/Debug-webassembly-wasm32/SimpleNetworking-t.build/Objects-normal/wasm32/SimpleNetworking-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SimpleNetworking.build/Debug-webassembly-wasm32/SimpleNetworking-t.build/Objects-normal/wasm32/SimpleNetworking-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/SimpleNetworking.build/Debug-webassembly-wasm32/SimpleNetworking-t.build/Objects-normal/wasm32/Modules/SimpleNetworking.swiftmodule
error: Build failed
BUILD FAILURE 6.4 wasm