Build Information
Failed to build TonConnect, reference develop (c11d3b), with Swift 6.4 for Wasm on 20 Sep 2026 20:07:46 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344843-1":/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/bbetsey/tonconnect-swift.git
Reference: develop
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/bbetsey/tonconnect-swift
* branch develop -> FETCH_HEAD
* [new branch] develop -> origin/develop
HEAD is now at c11d3be Merge pull request #51 from bbetsey/docs/changelog-wording
Cloned https://github.com/bbetsey/tonconnect-swift.git
Revision (git rev-parse @):
c11d3bed28ed7b5ffda9eae8558a7183a6a58c5f
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/bbetsey/tonconnect-swift.git at develop
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.4
Building package at path: $PWD
https://github.com/bbetsey/tonconnect-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344843-1":/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
Fetching https://github.com/swiftlang/swift-docc-plugin
[1/2345] Fetching swift-docc-plugin
Fetched https://github.com/swiftlang/swift-docc-plugin (0.52s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.5.0 (1.60s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3824] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit (0.60s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.84s)
Creating working copy for https://github.com/swiftlang/swift-docc-plugin
Working copy of https://github.com/swiftlang/swift-docc-plugin resolved at 1.5.0
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Building for debugging...
[Computing dependencies]
[Pre-planning 1 / 560]
[Constructing 201 / 1052]
warning: no rule to process file '/host/spi-builder-workspace/Sources/TonConnectUI/Resources/Media.xcassets' of type 'folder.assetcatalog' for architecture 'wasm32'
[88 / 152] CTweetNacl
error: SwiftCompile normal wasm32 failed with a nonzero exit code. Command line: cd /host
/host/spi-builder-workspace/Sources/TonConnectTransport/NativeEventSource.swift:24: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;36m22 |[0;0m private let lastEventId: String?
[0;36m23 |[0;0m private var parser = SSEEventParser()
[0;36m24 |[0;0m private 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;36m25 |[0;0m private var task: URLSessionDataTask?
[0;36m26 |[0;0m private let stateLock = NSLock()
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/TonConnectTransport/NativeEventSource.swift:25:23: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m23 |[0;0m private var parser = SSEEventParser()
[0;36m24 |[0;0m private var session: URLSession!
[0;36m25 |[0;0m private 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;36m26 |[0;0m private let stateLock = NSLock()
[0;36m27 |[0;0m private var _readyState: ReadyState = .connecting
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/TonConnectTransport/NativeEventSource.swift:31:31: [1;31merror: [1;39m'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m29 |[0;0m /// protocolClasses. URLProtocol.registerClass has no effect on sessions with
[0;36m30 |[0;0m /// a custom configuration (verified empirically).
[0;36m31 |[0;0m var sessionConfiguration: [4;39mURLSessionConfiguration[0;0m = .ephemeral
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m32 |[0;0m
[0;36m33 |[0;0m /// The stream is open — set these before calling ``connect()``.
Foundation.URLSessionConfiguration:2:18: [1;39mnote: [1;39m'URLSessionConfiguration' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionConfiguration = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionConfiguration' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/TonConnectTransport/NativeEventSource.swift:31:58: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m29 |[0;0m /// protocolClasses. URLProtocol.registerClass has no effect on sessions with
[0;36m30 |[0;0m /// a custom configuration (verified empirically).
[0;36m31 |[0;0m var sessionConfiguration: URLSessionConfiguration = .ephemeral
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m32 |[0;0m
[0;36m33 |[0;0m /// The stream is open — set these before calling ``connect()``.
/host/spi-builder-workspace/Sources/TonConnectTransport/NativeEventSource.swift:31:58: [1;31merror: [1;39mtype 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'[0;0m
[0;36m29 |[0;0m /// protocolClasses. URLProtocol.registerClass has no effect on sessions with
[0;36m30 |[0;0m /// a custom configuration (verified empirically).
[0;36m31 |[0;0m var sessionConfiguration: URLSessionConfiguration = [4;39m.ephemeral[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'[0;0m
[0;36m32 |[0;0m
[0;36m33 |[0;0m /// The stream is open — set these before calling ``connect()``.
/host/spi-builder-workspace/Sources/TonConnectTransport/NativeEventSource.swift:55:39: [1;31merror: [1;39m'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m53 |[0;0m /// sessionConfiguration — a seam for tests/debugging (the fake's protocolClasses).
[0;36m54 |[0;0m public init(url: String, lastEventId: String?,
[0;36m55 |[0;0m sessionConfiguration: [4;39mURLSessionConfiguration[0;0m = .ephemeral) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m56 |[0;0m self.url = url
[0;36m57 |[0;0m self.lastEventId = lastEventId
Foundation.URLSessionConfiguration:2:18: [1;39mnote: [1;39m'URLSessionConfiguration' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionConfiguration = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionConfiguration' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/TonConnectTransport/NativeEventSource.swift:55:66: [1;31merror: [1;39mtype 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'[0;0m
[0;36m53 |[0;0m /// sessionConfiguration — a seam for tests/debugging (the fake's protocolClasses).
[0;36m54 |[0;0m public init(url: String, lastEventId: String?,
[0;36m55 |[0;0m sessionConfiguration: URLSessionConfiguration = [4;39m.ephemeral[0;0m) {
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'[0;0m
[0;36m56 |[0;0m self.url = url
[0;36m57 |[0;0m self.lastEventId = lastEventId
/host/spi-builder-workspace/Sources/TonConnectTransport/NativeEventSource.swift:55:66: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m53 |[0;0m /// sessionConfiguration — a seam for tests/debugging (the fake's protocolClasses).
[0;36m54 |[0;0m public init(url: String, lastEventId: String?,
[0;36m55 |[0;0m sessionConfiguration: URLSessionConfiguration = .ephemeral) {
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m56 |[0;0m self.url = url
[0;36m57 |[0;0m self.lastEventId = lastEventId
/host/spi-builder-workspace/Sources/TonConnectTransport/NativeEventSource.swift:92:30: [1;31merror: [1;39mcannot find type 'URLSessionDataDelegate' in scope[0;0m
[0;36m90 |[0;0m }
[0;36m91 |[0;0m
[0;36m92 |[0;0m extension NativeEventSource: [4;39mURLSessionDataDelegate[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLSessionDataDelegate' in scope[0;0m
[0;36m93 |[0;0m public func urlSession(_ s: URLSession, dataTask: URLSessionDataTask,
[0;36m94 |[0;0m didReceive response: URLResponse,
/host/spi-builder-workspace/Sources/TonConnectTransport/NativeEventSource.swift:95:69: [1;31merror: [1;39m'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')[0;0m
[0;36m93 |[0;0m public func urlSession(_ s: URLSession, dataTask: URLSessionDataTask,
[0;36m94 |[0;0m didReceive response: URLResponse,
[0;36m95 |[0;0m completionHandler: @escaping ([4;39mURLSession[0;0m.ResponseDisposition) -> Void) {
[0;36m|[0;0m `- [1;31merror: [1;39m'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')[0;0m
[0;36m96 |[0;0m let code = (response as? HTTPURLResponse)?.statusCode ?? 0
[0;36m97 |[0;0m guard (200..<300).contains(code) else {
/host/spi-builder-workspace/Sources/TonConnectTransport/NativeEventSource.swift:93:33: [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
[0;36m92 |[0;0m extension NativeEventSource: URLSessionDataDelegate {
[0;36m93 |[0;0m public func urlSession(_ s: [4;39mURLSession[0;0m, dataTask: URLSessionDataTask,
[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;36m94 |[0;0m didReceive response: URLResponse,
[0;36m95 |[0;0m completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
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/TonConnectTransport/NativeEventSource.swift:93:55: [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
[0;36m92 |[0;0m extension NativeEventSource: URLSessionDataDelegate {
[0;36m93 |[0;0m public func urlSession(_ s: URLSession, dataTask: [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;36m94 |[0;0m didReceive response: URLResponse,
[0;36m95 |[0;0m completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
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/TonConnectTransport/NativeEventSource.swift:94:49: [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m92 |[0;0m extension NativeEventSource: URLSessionDataDelegate {
[0;36m93 |[0;0m public func urlSession(_ s: URLSession, dataTask: URLSessionDataTask,
[0;36m94 |[0;0m didReceive 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;36m95 |[0;0m completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
[0;36m96 |[0;0m let code = (response as? HTTPURLResponse)?.statusCode ?? 0
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/TonConnectTransport/NativeEventSource.swift:110:33: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m108 |[0;0m completionHandler(.allow)
[0;36m109 |[0;0m }
[0;36m110 |[0;0m public func urlSession(_ s: [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;36m111 |[0;0m guard readyState == .open else { return } // a body after a refusal or a close
[0;36m112 |[0;0m onRawData?(data) // "the stream sent something" — record BEFORE parsing
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/TonConnectTransport/NativeEventSource.swift:110:55: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m108 |[0;0m completionHandler(.allow)
[0;36m109 |[0;0m }
[0;36m110 |[0;0m public func urlSession(_ s: 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;36m111 |[0;0m guard readyState == .open else { return } // a body after a refusal or a close
[0;36m112 |[0;0m onRawData?(data) // "the stream sent something" — record BEFORE parsing
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/TonConnectTransport/NativeEventSource.swift:122:33: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m120 |[0;0m }
[0;36m121 |[0;0m }
[0;36m122 |[0;0m public func urlSession(_ s: [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;36m123 |[0;0m // The stream finished/dropped. NO reconnect — signal only.
[0;36m124 |[0;0m if readyState != .closed { fail(error) }
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/TonConnectTransport/NativeEventSource.swift:122:51: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m120 |[0;0m }
[0;36m121 |[0;0m }
[0;36m122 |[0;0m public func urlSession(_ s: 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;36m123 |[0;0m // The stream finished/dropped. NO reconnect — signal only.
[0;36m124 |[0;0m if readyState != .closed { fail(error) }
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/TonConnectTransport/NativeFetch.swift:11:23: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m9 |[0;0m /// The cancellation handle — the polyfill wires it to a JS AbortSignal. Pure Swift.
[0;36m10 |[0;0m public final class NativeFetchTask: @unchecked Sendable {
[0;36m11 |[0;0m private let 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;36m12 |[0;0m init(_ task: URLSessionDataTask) { self.task = task }
[0;36m13 |[0;0m public func cancel() { task.cancel() }
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/TonConnectTransport/NativeFetch.swift:12:18: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m10 |[0;0m public final class NativeFetchTask: @unchecked Sendable {
[0;36m11 |[0;0m private let task: URLSessionDataTask
[0;36m12 |[0;0m init(_ task: [4;39mURLSessionDataTask[0;0m) { self.task = task }
[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;36m13 |[0;0m public func cancel() { task.cancel() }
[0;36m14 |[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/TonConnectTransport/NativeFetch.swift:20: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;36m18 |[0;0m /// carried into the completion as .failure → the polyfill maps it to TonConnectError.network.
[0;36m19 |[0;0m public final class NativeFetch: @unchecked Sendable {
[0;36m20 |[0;0m private let session: [4;39mURLSession[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m21 |[0;0m public init(session: URLSession = URLSession(configuration: .ephemeral)) {
[0;36m22 |[0;0m self.session = session
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/TonConnectTransport/NativeFetch.swift:21: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;36m19 |[0;0m public final class NativeFetch: @unchecked Sendable {
[0;36m20 |[0;0m private let session: URLSession
[0;36m21 |[0;0m public init(session: [4;39mURLSession[0;0m = URLSession(configuration: .ephemeral)) {
[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;36m22 |[0;0m self.session = session
[0;36m23 |[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/TonConnectTransport/NativeFetch.swift:21:39: [1;31merror: [1;39m'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers[0;0m
[0;36m19 |[0;0m public final class NativeFetch: @unchecked Sendable {
[0;36m20 |[0;0m private let session: URLSession
[0;36m21 |[0;0m public init(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;36m22 |[0;0m self.session = session
[0;36m23 |[0;0m }
/host/spi-builder-workspace/Sources/TonConnectTransport/NativeFetch.swift:21:39: [1;31merror: [1;39mdefault argument value of type '_' cannot be converted to type 'AnyObject'[0;0m
[0;36m19 |[0;0m public final class NativeFetch: @unchecked Sendable {
[0;36m20 |[0;0m private let session: URLSession
[0;36m21 |[0;0m public init(session: URLSession = [4;39mURLSession(configuration: .ephemeral)[0;0m) {
[0;36m|[0;0m `- [1;31merror: [1;39mdefault argument value of type '_' cannot be converted to type 'AnyObject'[0;0m
[0;36m22 |[0;0m self.session = session
[0;36m23 |[0;0m }
Failed frontend command:
/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/Sources/TonConnectTransport/NativeEventSource.swift /host/spi-builder-workspace/Sources/TonConnectTransport/NativeFetch.swift /host/spi-builder-workspace/Sources/TonConnectTransport/SSEEventParser.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_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /usr/lib/swift/host/plugins/testing\#/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -resource-dir /root/.swiftpm/swift-sdks/swift-6.4.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/TonConnect.build/Debug-webassembly-wasm32/TonConnectTransport-t.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/TonConnect.build/Debug-webassembly-wasm32/TonConnectTransport-t.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/TonConnect.build/Debug-webassembly-wasm32/TonConnectTransport-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name TonConnectTransport -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/TonConnect.build/Debug-webassembly-wasm32/TonConnectTransport-t.build/Objects-normal/wasm32/TonConnectTransport_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/TonConnect.build/Debug-webassembly-wasm32/TonConnectTransport-t.build/Objects-normal/wasm32/Modules/TonConnectTransport.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/TonConnect.build/Debug-webassembly-wasm32/TonConnectTransport-t.build/Objects-normal/wasm32/Modules/TonConnectTransport.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/TonConnect.build/Debug-webassembly-wasm32/TonConnectTransport-t.build/Objects-normal/wasm32/TonConnectTransport-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/TonConnect.build/Debug-webassembly-wasm32/TonConnectTransport-t.build/Objects-normal/wasm32/TonConnectTransport-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/TonConnect.build/Debug-webassembly-wasm32/TonConnectTransport-t.build/Objects-normal/wasm32/TonConnectTransport-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/TonConnect.build/Debug-webassembly-wasm32/TonConnectTransport-t.build/Objects-normal/wasm32/Modules/TonConnectTransport.swiftmodule
error: Build failed
BUILD FAILURE 6.4 wasm