Build Information
Failed to build SimpleNetworking, reference main (c624a7), with Swift 6.4 for Wasm on 8 Nov 2026 20:50:39 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344844-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest swift build --swift-sdk swift-6.4.0-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.4
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 c624a7c Updates
Cloned https://github.com/0xWDG/SimpleNetworking.git
Revision (git rev-parse @):
c624a7c102d985f026e2258c0234fe4da1eba212
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-54344844-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest swift build --swift-sdk swift-6.4.0-RELEASE_wasm 2>&1
wasm-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:439c9a525449f13061cf4a8f755895df6bdc90ef7885bc03630392396f826d74
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest
Building for debugging...
[Pre-planning 1 / 95]
error: SwiftCompile normal wasm32 failed with a nonzero exit code. Command line: cd /host
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:65:34: [1;31merror: [1;39m'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m63 |[0;0m /// Protects all mutable client state used by concurrent requests.
[0;36m64 |[0;0m internal let stateLock = NSLock()
[0;36m65 |[0;0m internal var cookieStorage: [[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;36m66 |[0;0m internal var headerStorage: [HTTPHeader]? = []
[0;36m67 |[0;0m internal var fullResponseStorage: String? = ""
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:70: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;36m68 |[0;0m
[0;36m69 |[0;0m /// All the cookies. Prefer the cookie helper methods for atomic updates.
[0;36m70 |[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;36m71 |[0;0m get { withStateLock { cookieStorage } }
[0;36m72 |[0;0m set { withStateLock { cookieStorage = newValue } }
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:100:27: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m98 |[0;0m
[0;36m99 |[0;0m /// custom session
[0;36m100 |[0;0m internal var 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;36m101 |[0;0m
[0;36m102 |[0;0m /// Streaming response handler for connection open event
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:112: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;36m110 |[0;0m
[0;36m111 |[0;0m /// URLSession Data Task
[0;36m112 |[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;36m113 |[0;0m
[0;36m114 |[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:115: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;36m113 |[0;0m
[0;36m114 |[0;0m /// EventSource session
[0;36m115 |[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;36m116 |[0;0m
[0;36m117 |[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:118:28: [1;31merror: [1;39mcannot find type 'URLSessionWebSocketTask' in scope[0;0m
[0;36m116 |[0;0m
[0;36m117 |[0;0m /// Websocket socket
[0;36m118 |[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;36m119 |[0;0m
[0;36m120 |[0;0m /// Websocket connection tries
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:144:66: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m142 |[0;0m
[0;36m143 |[0;0m /// Create an isolated networking client with immutable initial settings.
[0;36m144 |[0;0m public init(configuration: Configuration = .init(), session: [4;39mURLSession[0;0m? = nil) {
[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;36m145 |[0;0m serverURL = configuration.serverURL
[0;36m146 |[0;0m userAgent = configuration.userAgent
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:169:22: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m167 |[0;0m let authorization: String?
[0;36m168 |[0;0m let headers: [HTTPHeader]
[0;36m169 |[0;0m let session: [4;39mURLSession[0;0m?
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m170 |[0;0m let mocks: [String: SNMock]
[0;36m171 |[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:225: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;36m223 |[0;0m /// Set the session
[0;36m224 |[0;0m /// - Parameter session: session
[0;36m225 |[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;36m226 |[0;0m withStateLock { self.session = session }
[0;36m227 |[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:245: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;36m243 |[0;0m /// Add or replace a stored cookie by name.
[0;36m244 |[0;0m /// - Parameter add: Cookie to store; any stored cookie with the same name is replaced.
[0;36m245 |[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;36m246 |[0;0m withStateLock {
[0;36m247 |[0;0m cookieStorage?.removeAll(where: { $0.name == cookie.name })
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:270: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;36m268 |[0;0m /// Add or replace a stored cookie by name.
[0;36m269 |[0;0m /// - Parameter add: Cookie to store; any stored cookie with the same name is replaced.
[0;36m270 |[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;36m271 |[0;0m withStateLock {
[0;36m272 |[0;0m cookieStorage?.removeAll(where: { $0.name == cookie.name })
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:83:38: [1;31merror: [1;39mcannot find type 'URLSessionDataDelegate' in scope[0;0m
[0;36m81 |[0;0m }
[0;36m82 |[0;0m
[0;36m83 |[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;36m84 |[0;0m internal var onMessage: ((Data) -> Void)?
[0;36m85 |[0;0m
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:90: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;36m88 |[0;0m }
[0;36m89 |[0;0m
[0;36m90 |[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;36m91 |[0;0m onMessage?(data)
[0;36m92 |[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:90: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;36m88 |[0;0m }
[0;36m89 |[0;0m
[0;36m90 |[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;36m91 |[0;0m onMessage?(data)
[0;36m92 |[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 withStateLock { cookieStorage ?? [] }
[0;36m21 |[0;0m }
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:23:54: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m21 |[0;0m }
[0;36m22 |[0;0m
[0;36m23 |[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;36m24 |[0;0m let storedCookies = withStateLock { cookieStorage ?? [] }
[0;36m25 |[0;0m
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:34: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;36m32 |[0;0m }
[0;36m33 |[0;0m
[0;36m34 |[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;36m35 |[0;0m guard let httpResponse = response as? HTTPURLResponse,
[0;36m36 |[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:115:23: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m113 |[0;0m /// - Returns: ``NetworkResponse``
[0;36m114 |[0;0m internal func exec(
[0;36m115 |[0;0m with request: [4;39mURLRequest[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m116 |[0;0m completionHandler: @escaping @Sendable (NetworkResponse) -> Void,
[0;36m117 |[0;0m file: String = #file,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:174:46: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m172 |[0;0m
[0;36m173 |[0;0m /// Builds a response for a configured mock without starting a URL session.
[0;36m174 |[0;0m private func mockedResponse(for request: [4;39mURLRequest[0;0m) -> NetworkResponse? {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m175 |[0;0m guard let url = request.url,
[0;36m176 |[0;0m let mock = requestSettings().mocks[url.absoluteString] else {
/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:160:46: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m158 |[0;0m }
[0;36m159 |[0;0m
[0;36m160 |[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;36m161 |[0;0m let settings = requestSettings()
[0;36m162 |[0;0m // Create a URL Request
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:131:18: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m129 |[0;0m response: URLResponse?,
[0;36m130 |[0;0m error: Error?,
[0;36m131 |[0;0m request: [4;39mURLRequest[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m132 |[0;0m ) -> NetworkResponse {
[0;36m133 |[0;0m let statusCode = (response as? HTTPURLResponse)?.statusCode
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:129:19: [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m127 |[0;0m internal func response(
[0;36m128 |[0;0m from data: Data?,
[0;36m129 |[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;36m130 |[0;0m error: Error?,
[0;36m131 |[0;0m request: URLRequest
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/transfers.swift:168:41: [1;31merror: [1;39mcannot find type 'URLSessionDownloadDelegate' in scope[0;0m
[0;36m166 |[0;0m }
[0;36m167 |[0;0m
[0;36m168 |[0;0m final class TransferDelegate: NSObject, [4;39mURLSessionDownloadDelegate[0;0m, URLSessionDataDelegate, @unchecked Sendable {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLSessionDownloadDelegate' in scope[0;0m
[0;36m169 |[0;0m private let lock = NSLock()
[0;36m170 |[0;0m private let progressHandler: @Sendable (SimpleNetworking.TransferProgress) -> Void
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:168:69: [1;31merror: [1;39mcannot find type 'URLSessionDataDelegate' in scope[0;0m
[0;36m166 |[0;0m }
[0;36m167 |[0;0m
[0;36m168 |[0;0m final class TransferDelegate: NSObject, URLSessionDownloadDelegate, [4;39mURLSessionDataDelegate[0;0m, @unchecked Sendable {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLSessionDataDelegate' in scope[0;0m
[0;36m169 |[0;0m private let lock = NSLock()
[0;36m170 |[0;0m private let progressHandler: @Sendable (SimpleNetworking.TransferProgress) -> Void
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:185:49: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m183 |[0;0m }
[0;36m184 |[0;0m
[0;36m185 |[0;0m func download(session: URLSession, request: [4;39mURLRequest[0;0m) async -> SimpleNetworking.NetworkResponse {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m186 |[0;0m let task = session.downloadTask(with: request)
[0;36m187 |[0;0m return await download(task: task)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:185:28: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m183 |[0;0m }
[0;36m184 |[0;0m
[0;36m185 |[0;0m func download(session: [4;39mURLSession[0;0m, request: URLRequest) async -> SimpleNetworking.NetworkResponse {
[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;36m186 |[0;0m let task = session.downloadTask(with: request)
[0;36m187 |[0;0m return await download(task: task)
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/transfers.swift:190:28: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m188 |[0;0m }
[0;36m189 |[0;0m
[0;36m190 |[0;0m func download(session: [4;39mURLSession[0;0m, resumeData: Data) async -> SimpleNetworking.NetworkResponse {
[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;36m191 |[0;0m let task = session.downloadTask(withResumeData: resumeData)
[0;36m192 |[0;0m return await download(task: task)
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/transfers.swift:195:33: [1;31merror: [1;39m'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m193 |[0;0m }
[0;36m194 |[0;0m
[0;36m195 |[0;0m private func download(task: [4;39mURLSessionDownloadTask[0;0m) async -> SimpleNetworking.NetworkResponse {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m196 |[0;0m return await withTaskCancellationHandler(operation: {
[0;36m197 |[0;0m await withCheckedContinuation { continuation in
Foundation.URLSessionDownloadTask:2:18: [1;39mnote: [1;39m'URLSessionDownloadTask' 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 URLSessionDownloadTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDownloadTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:208:47: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m206 |[0;0m }
[0;36m207 |[0;0m
[0;36m208 |[0;0m func upload(session: URLSession, request: [4;39mURLRequest[0;0m) async -> SimpleNetworking.NetworkResponse {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m209 |[0;0m let task = session.uploadTask(with: request, from: request.httpBody ?? Data())
[0;36m210 |[0;0m return await upload(task: task)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:208:26: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m206 |[0;0m }
[0;36m207 |[0;0m
[0;36m208 |[0;0m func upload(session: [4;39mURLSession[0;0m, request: URLRequest) async -> SimpleNetworking.NetworkResponse {
[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;36m209 |[0;0m let task = session.uploadTask(with: request, from: request.httpBody ?? Data())
[0;36m210 |[0;0m return await upload(task: task)
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/transfers.swift:213:47: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m211 |[0;0m }
[0;36m212 |[0;0m
[0;36m213 |[0;0m func upload(session: URLSession, request: [4;39mURLRequest[0;0m, bodyFile: URL) async -> SimpleNetworking.NetworkResponse {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m214 |[0;0m let task = session.uploadTask(with: request, fromFile: bodyFile)
[0;36m215 |[0;0m return await upload(task: task)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:213:26: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m211 |[0;0m }
[0;36m212 |[0;0m
[0;36m213 |[0;0m func upload(session: [4;39mURLSession[0;0m, request: URLRequest, bodyFile: URL) async -> SimpleNetworking.NetworkResponse {
[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;36m214 |[0;0m let task = session.uploadTask(with: request, fromFile: bodyFile)
[0;36m215 |[0;0m return await upload(task: task)
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/transfers.swift:218:31: [1;31merror: [1;39m'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m216 |[0;0m }
[0;36m217 |[0;0m
[0;36m218 |[0;0m private func upload(task: [4;39mURLSessionUploadTask[0;0m) async -> SimpleNetworking.NetworkResponse {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m219 |[0;0m return await withTaskCancellationHandler(operation: {
[0;36m220 |[0;0m await withCheckedContinuation { continuation in
Foundation.URLSessionUploadTask:2:18: [1;39mnote: [1;39m'URLSessionUploadTask' 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 URLSessionUploadTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionUploadTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:232:20: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m230 |[0;0m
[0;36m231 |[0;0m func urlSession(
[0;36m232 |[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;36m233 |[0;0m downloadTask: URLSessionDownloadTask,
[0;36m234 |[0;0m didWriteData bytesWritten: Int64,
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:233:23: [1;31merror: [1;39m'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m231 |[0;0m func urlSession(
[0;36m232 |[0;0m _ session: URLSession,
[0;36m233 |[0;0m downloadTask: [4;39mURLSessionDownloadTask[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m234 |[0;0m didWriteData bytesWritten: Int64,
[0;36m235 |[0;0m totalBytesWritten: Int64,
Foundation.URLSessionDownloadTask:2:18: [1;39mnote: [1;39m'URLSessionDownloadTask' 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 URLSessionDownloadTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDownloadTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:242:20: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m240 |[0;0m
[0;36m241 |[0;0m func urlSession(
[0;36m242 |[0;0m _ session: [4;39mURLSession[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m243 |[0;0m task: URLSessionTask,
[0;36m244 |[0;0m didSendBodyData bytesSent: Int64,
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:243:15: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m241 |[0;0m func urlSession(
[0;36m242 |[0;0m _ session: URLSession,
[0;36m243 |[0;0m task: [4;39mURLSessionTask[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m244 |[0;0m didSendBodyData bytesSent: Int64,
[0;36m245 |[0;0m totalBytesSent: Int64,
Foundation.URLSessionTask:2:18: [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:251:32: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m249 |[0;0m }
[0;36m250 |[0;0m
[0;36m251 |[0;0m func urlSession(_ session: [4;39mURLSession[0;0m, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m252 |[0;0m do {
[0;36m253 |[0;0m guard let destinationURL else { throw CocoaError(.fileNoSuchFile) }
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/transfers.swift:251:58: [1;31merror: [1;39m'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m249 |[0;0m }
[0;36m250 |[0;0m
[0;36m251 |[0;0m func urlSession(_ session: URLSession, downloadTask: [4;39mURLSessionDownloadTask[0;0m, didFinishDownloadingTo location: URL) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m252 |[0;0m do {
[0;36m253 |[0;0m guard let destinationURL else { throw CocoaError(.fileNoSuchFile) }
Foundation.URLSessionDownloadTask:2:18: [1;39mnote: [1;39m'URLSessionDownloadTask' 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 URLSessionDownloadTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDownloadTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:277:32: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m275 |[0;0m }
[0;36m276 |[0;0m
[0;36m277 |[0;0m func urlSession(_ session: [4;39mURLSession[0;0m, dataTask: URLSessionDataTask, didReceive data: Data) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m278 |[0;0m lock.lock()
[0;36m279 |[0;0m uploadData = (uploadData ?? 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/transfers.swift:277:54: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m275 |[0;0m }
[0;36m276 |[0;0m
[0;36m277 |[0;0m func urlSession(_ session: URLSession, dataTask: [4;39mURLSessionDataTask[0;0m, didReceive data: Data) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m278 |[0;0m lock.lock()
[0;36m279 |[0;0m uploadData = (uploadData ?? Data()) + data
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/transfers.swift:283:32: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m281 |[0;0m }
[0;36m282 |[0;0m
[0;36m283 |[0;0m func urlSession(_ session: [4;39mURLSession[0;0m, task: URLSessionTask, didCompleteWithError error: Error?) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m284 |[0;0m lock.lock()
[0;36m285 |[0;0m defer { lock.unlock() }
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/transfers.swift:283:50: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m281 |[0;0m }
[0;36m282 |[0;0m
[0;36m283 |[0;0m func urlSession(_ session: URLSession, task: [4;39mURLSessionTask[0;0m, didCompleteWithError error: Error?) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m284 |[0;0m lock.lock()
[0;36m285 |[0;0m defer { lock.unlock() }
Foundation.URLSessionTask:2:18: [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:108:89: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m106 |[0;0m /// - uploadData: The multipart upload data
[0;36m107 |[0;0m /// - Returns: URLRequest or nil if URL is invalid
[0;36m108 |[0;0m internal 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;36m109 |[0;0m guard let siteURL = self.isURL(path) else {
[0;36m110 |[0;0m return nil
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:135:75: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m133 |[0;0m }
[0;36m134 |[0;0m
[0;36m135 |[0;0m private func createFileBackedUploadRequest(path: String) -> (request: [4;39mURLRequest[0;0m, boundary: String)? {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m136 |[0;0m guard let siteURL = isURL(path) else { return nil }
[0;36m137 |[0;0m let boundary = generateBoundary()
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:183:20: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m181 |[0;0m
[0;36m182 |[0;0m private func uploadFileBackedRequest(
[0;36m183 |[0;0m _ request: [4;39mURLRequest[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m184 |[0;0m bodyFile: URL,
[0;36m185 |[0;0m onProgress: @escaping @Sendable (TransferProgress) -> Void
/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 /// Whether this response has a 2xx HTTP status and no transport error.
/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/RequestDescriptor.swift:35:33: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m33 |[0;0m public let timeout: TimeInterval?
[0;36m34 |[0;0m /// An optional URL loading cache policy.
[0;36m35 |[0;0m public let cachePolicy: [4;39mURLRequest[0;0m.CachePolicy?
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m36 |[0;0m /// The body encoding used with standard methods that carry data.
[0;36m37 |[0;0m public let encoding: POSTEncoding
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/RequestDescriptor.swift:46:26: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m44 |[0;0m headers: [HTTPHeader] = [],
[0;36m45 |[0;0m timeout: TimeInterval? = nil,
[0;36m46 |[0;0m cachePolicy: [4;39mURLRequest[0;0m.CachePolicy? = nil,
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m47 |[0;0m encoding: POSTEncoding = .auto
[0;36m48 |[0;0m ) {
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/RequestDescriptor.swift:68:26: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m66 |[0;0m headers: [HTTPHeader] = [],
[0;36m67 |[0;0m timeout: TimeInterval? = nil,
[0;36m68 |[0;0m cachePolicy: [4;39mURLRequest[0;0m.CachePolicy? = nil
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m69 |[0;0m ) {
[0;36m70 |[0;0m self.path = path
/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:48: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;36m46 |[0;0m /// - statusCode: Mocked HTTP Response status code
[0;36m47 |[0;0m /// - error: Mocked Error (if any)
[0;36m48 |[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;36m49 |[0;0m self.data = data?.data(using: .utf8)
[0;36m50 |[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/transfers.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/RequestDescriptor.swift /host/spi-builder-workspace/Sources/SimpleNetworking/Structs/SNMock.swift /host/spi-builder-workspace/Sources/SimpleNetworking/Structs/TransferProgress.swift -target wasm32-unknown-wasip1 -disable-objc-interop -sdk /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk -sysroot /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk -I /host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 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.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static -use-static-resource-dir -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -resource-dir -Xcc /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/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
[33 / 41] SimpleNetworking
error: Build failed
BUILD FAILURE 6.4 wasm