Build Information
Failed to build ICY, reference 1.2.2 (61ffd8), with Swift 6.3 for Wasm on 11 Apr 2026 15:12:42 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Bouke/ICY.git
Reference: 1.2.2
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/Bouke/ICY
* tag 1.2.2 -> FETCH_HEAD
HEAD is now at 61ffd86 Handle portal http errors
Cloned https://github.com/Bouke/ICY.git
Revision (git rev-parse @):
61ffd86fe9452c66440f8bb14a48ef5fb77fbfa0
SUCCESS checkout https://github.com/Bouke/ICY.git at 1.2.2
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.3
Building package at path: $PWD
https://github.com/Bouke/ICY.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/4] Emitting module ICY
/host/spi-builder-workspace/Sources/ICY.swift:151:23: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
149 | }
150 |
151 | let sharedURLSession: URLSession = {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
152 | #if os(macOS)
153 | return URLSession.shared
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ICY.swift:151:36: error: cannot convert value of type '()' to closure result type 'AnyObject'
149 | }
150 |
151 | let sharedURLSession: URLSession = {
| `- error: cannot convert value of type '()' to closure result type 'AnyObject'
152 | #if os(macOS)
153 | return URLSession.shared
/host/spi-builder-workspace/Sources/ICY.swift:160:32: error: cannot find type 'URLRequest' in scope
158 | }()
159 |
160 | func performRequest(_ request: URLRequest, completionHandler: @escaping (Result<[String: Any]>) -> ()) {
| `- error: cannot find type 'URLRequest' in scope
161 | let task = sharedURLSession.dataTask(with: request) { (data, response, error) in
162 | if let error = error {
[4/4] Compiling ICY ICY.swift
/host/spi-builder-workspace/Sources/ICY.swift:151:23: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
149 | }
150 |
151 | let sharedURLSession: URLSession = {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
152 | #if os(macOS)
153 | return URLSession.shared
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ICY.swift:151:36: error: cannot convert value of type '()' to closure result type 'AnyObject'
149 | }
150 |
151 | let sharedURLSession: URLSession = {
| `- error: cannot convert value of type '()' to closure result type 'AnyObject'
152 | #if os(macOS)
153 | return URLSession.shared
/host/spi-builder-workspace/Sources/ICY.swift:160:32: error: cannot find type 'URLRequest' in scope
158 | }()
159 |
160 | func performRequest(_ request: URLRequest, completionHandler: @escaping (Result<[String: Any]>) -> ()) {
| `- error: cannot find type 'URLRequest' in scope
161 | let task = sharedURLSession.dataTask(with: request) { (data, response, error) in
162 | if let error = error {
/host/spi-builder-workspace/Sources/ICY.swift:161:33: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
159 |
160 | func performRequest(_ request: URLRequest, completionHandler: @escaping (Result<[String: Any]>) -> ()) {
161 | let task = sharedURLSession.dataTask(with: request) { (data, response, error) in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
162 | if let error = error {
163 | return completionHandler(.error(error))
/host/spi-builder-workspace/Sources/ICY.swift:217:23: error: cannot find 'URLRequest' in scope
215 |
216 | public func getStatus(completionHandler: @escaping (Result<ThermostatStatus>) -> ()) {
217 | var request = URLRequest(url: URL(string: "https://portal.icy.nl/data")!)
| `- error: cannot find 'URLRequest' in scope
218 | request.setValue(token, forHTTPHeaderField: "Session-Token")
219 | performRequest(request) { result in
/host/spi-builder-workspace/Sources/ICY.swift:239:23: error: cannot find 'URLRequest' in scope
237 |
238 | public func setStatus(_ status: ThermostatStatus, completionHandler: @escaping (Result<Void>) -> ()) {
239 | var request = URLRequest(url: URL(string: "https://portal.icy.nl/data")!)
| `- error: cannot find 'URLRequest' in scope
240 | request.setValue(token, forHTTPHeaderField: "Session-Token")
241 | request.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/ICY.swift:259:19: error: cannot find 'URLRequest' in scope
257 |
258 | public func login(username: String, password: String, completionHandler: @escaping (Result<Session>) -> ()) {
259 | var request = URLRequest(url: URL(string: "https://portal.icy.nl/login")!)
| `- error: cannot find 'URLRequest' in scope
260 | request.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type")
261 | request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/ICY.swift:263:31: error: cannot find type 'URLRequest' in scope
261 | request.httpMethod = "POST"
262 | request.httpBody = "username=\(username)&password=\(password)&remember=1".data(using: String.Encoding.ascii, allowLossyConversion: false)
263 | performRequest(request as URLRequest) { result in
| `- error: cannot find type 'URLRequest' in scope
264 | switch result {
265 | case .success(let json):
BUILD FAILURE 6.3 wasm