The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build ICY, reference 1.2.2 (61ffd8), with Swift 6.1 for Wasm on 27 May 2025 18:30:28 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
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.1
Building package at path:  $PWD
https://github.com/Bouke/ICY.git
https://github.com/Bouke/ICY.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "ICY",
  "name" : "ICY",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "ICY",
      "targets" : [
        "ICY"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ICY",
      "module_type" : "SwiftTarget",
      "name" : "ICY",
      "path" : "Sources",
      "product_memberships" : [
        "ICY"
      ],
      "sources" : [
        "ICY.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.2"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-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:5: warning: let 'sharedURLSession' is not concurrency-safe because non-'Sendable' type 'URLSession' (aka 'AnyObject') may have shared mutable state; this is an error in the Swift 6 language mode
149 | }
150 |
151 | let sharedURLSession: URLSession = {
    |     |- warning: let 'sharedURLSession' is not concurrency-safe because non-'Sendable' type 'URLSession' (aka 'AnyObject') may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: add '@MainActor' to make let 'sharedURLSession' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
152 |     #if os(macOS)
153 |         return URLSession.shared
/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:5: warning: let 'sharedURLSession' is not concurrency-safe because non-'Sendable' type 'URLSession' (aka 'AnyObject') may have shared mutable state; this is an error in the Swift 6 language mode
149 | }
150 |
151 | let sharedURLSession: URLSession = {
    |     |- warning: let 'sharedURLSession' is not concurrency-safe because non-'Sendable' type 'URLSession' (aka 'AnyObject') may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: add '@MainActor' to make let 'sharedURLSession' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
152 |     #if os(macOS)
153 |         return URLSession.shared
/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:171:28: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
169 |             return completionHandler(.error(ICYError.error("No data returned")))
170 |         }
171 |         guard httpResponse.statusCode == 200 else {
    |                            `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
172 |             let body = String(data: data, encoding: .utf8)
173 |             return completionHandler(.error(ICYError.error("Invalid status code: \(httpResponse.statusCode), body: \(body ?? "n/a")")))
/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):
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/3] 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:171:28: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
169 |             return completionHandler(.error(ICYError.error("No data returned")))
170 |         }
171 |         guard httpResponse.statusCode == 200 else {
    |                            `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
172 |             let body = String(data: data, encoding: .utf8)
173 |             return completionHandler(.error(ICYError.error("Invalid status code: \(httpResponse.statusCode), body: \(body ?? "n/a")")))
/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):
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/3] 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 {
BUILD FAILURE 6.1 wasm