Build Information
Failed to build TibberSwift, reference main (eef53a), with Swift 6.3 for Wasm on 16 Apr 2026 21:01:13 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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/ppeelen/TibberSwift.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/ppeelen/TibberSwift
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at eef53a3 add price info today (#8)
Cloned https://github.com/ppeelen/TibberSwift.git
Revision (git rev-parse @):
eef53a3fd81cfdc66daddf5ff1e8256dfad6e2d2
SUCCESS checkout https://github.com/ppeelen/TibberSwift.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.3
Building package at path: $PWD
https://github.com/ppeelen/TibberSwift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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
Fetching https://github.com/apple/swift-log.git
[1/6611] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.75s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.12.0 (1.21s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.12.0
Building for debugging...
[0/7] Copying Homes.graphql
[0/7] Copying Consumption.graphql
[2/7] Copying PriceInfoToday.graphql
[2/7] Copying LoggedInUser.graphql
[4/7] Write sources
[6/7] Write swift-version-24593BA9C3E375BF.txt
[8/13] Compiling Logging LogEvent.swift
[9/13] Compiling Logging MetadataProvider.swift
[10/13] Compiling Logging LogHandler.swift
[11/13] Compiling Logging Locks.swift
[12/13] Emitting module Logging
[13/13] Compiling Logging Logging.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[15/30] Emitting module TibberSwift
/host/spi-builder-workspace/Sources/TibberSwift/GraphQL/GraphQLOperation.swift:23:50: error: cannot find type 'URLRequest' in scope
21 | protocol GraphQLOperationDefinition {
22 | func encode(to encoder: Encoder) throws
23 | func getURLRequest(apiKey: String) throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
24 | }
25 |
/host/spi-builder-workspace/Sources/TibberSwift/GraphQL/GraphQLOperation.swift:80:59: error: cannot find type 'URLRequest' in scope
78 | }
79 |
80 | internal func getURLRequest(apiKey: String) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
81 | var request = URLRequest(url: url)
82 |
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:146:28: error: cannot find type 'URLRequest' in scope
144 |
145 | protocol URLSessionDefinition {
146 | func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
147 | }
148 |
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:146:51: error: cannot find type 'URLSessionTaskDelegate' in scope
144 |
145 | protocol URLSessionDefinition {
146 | func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
147 | }
148 |
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:23:123: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
21 |
22 | /// Meant for dependency injection while using tests
23 | internal init(apiKey: String, jsonDecoder: JSONDecoder = JSONDecoder(), urlSession: URLSessionDefinition = URLSession.shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
24 | self.apiKey = apiKey
25 | self.jsonDecoder = jsonDecoder
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:146:100: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
144 |
145 | protocol URLSessionDefinition {
146 | func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)?) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
147 | }
148 |
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:150:28: error: cannot find type 'URLRequest' in scope
148 |
149 | extension URLSessionDefinition {
150 | func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
151 | try await data(for: request, delegate: delegate)
152 | }
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:150:51: error: cannot find type 'URLSessionTaskDelegate' in scope
148 |
149 | extension URLSessionDefinition {
150 | func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
151 | try await data(for: request, delegate: delegate)
152 | }
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:150:106: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
148 |
149 | extension URLSessionDefinition {
150 | func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
151 | try await data(for: request, delegate: delegate)
152 | }
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:155:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
153 | }
154 |
155 | extension URLSession: URLSessionDefinition { }
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
156 |
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[16/32] Compiling TibberSwift TibberSwift.swift
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:146:28: error: cannot find type 'URLRequest' in scope
144 |
145 | protocol URLSessionDefinition {
146 | func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
147 | }
148 |
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:146:51: error: cannot find type 'URLSessionTaskDelegate' in scope
144 |
145 | protocol URLSessionDefinition {
146 | func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
147 | }
148 |
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:23:123: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
21 |
22 | /// Meant for dependency injection while using tests
23 | internal init(apiKey: String, jsonDecoder: JSONDecoder = JSONDecoder(), urlSession: URLSessionDefinition = URLSession.shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
24 | self.apiKey = apiKey
25 | self.jsonDecoder = jsonDecoder
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:146:100: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
144 |
145 | protocol URLSessionDefinition {
146 | func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)?) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
147 | }
148 |
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:150:28: error: cannot find type 'URLRequest' in scope
148 |
149 | extension URLSessionDefinition {
150 | func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
151 | try await data(for: request, delegate: delegate)
152 | }
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:150:51: error: cannot find type 'URLSessionTaskDelegate' in scope
148 |
149 | extension URLSessionDefinition {
150 | func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
151 | try await data(for: request, delegate: delegate)
152 | }
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:150:106: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
148 |
149 | extension URLSessionDefinition {
150 | func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
151 | try await data(for: request, delegate: delegate)
152 | }
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:155:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
153 | }
154 |
155 | extension URLSession: URLSessionDefinition { }
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
156 |
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:19:86: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 | /// - Parameter apiKey: The API Key from Tibber
18 | public convenience init(apiKey: String) {
19 | self.init(apiKey: apiKey, jsonDecoder: JSONDecoder(), urlSession: URLSession.shared)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
20 | }
21 |
/host/spi-builder-workspace/Sources/TibberSwift/GraphQL/GraphQLOperation.swift:23:50: error: cannot find type 'URLRequest' in scope
21 | protocol GraphQLOperationDefinition {
22 | func encode(to encoder: Encoder) throws
23 | func getURLRequest(apiKey: String) throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
24 | }
25 |
/host/spi-builder-workspace/Sources/TibberSwift/GraphQL/GraphQLOperation.swift:80:59: error: cannot find type 'URLRequest' in scope
78 | }
79 |
80 | internal func getURLRequest(apiKey: String) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
81 | var request = URLRequest(url: url)
82 |
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:94:64: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
92 | logger.info("Received response. Got data of \(data.count) bytes.")
93 |
94 | guard let statusCode = (response as? HTTPURLResponse)?.statusCode else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
95 | logger.error("Invalid response received. Could not get a status code.")
96 | throw TibberSwiftError.invalidResponse
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[17/32] Compiling TibberSwift resource_bundle_accessor.swift
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:146:28: error: cannot find type 'URLRequest' in scope
144 |
145 | protocol URLSessionDefinition {
146 | func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
147 | }
148 |
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:146:51: error: cannot find type 'URLSessionTaskDelegate' in scope
144 |
145 | protocol URLSessionDefinition {
146 | func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
147 | }
148 |
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:23:123: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
21 |
22 | /// Meant for dependency injection while using tests
23 | internal init(apiKey: String, jsonDecoder: JSONDecoder = JSONDecoder(), urlSession: URLSessionDefinition = URLSession.shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
24 | self.apiKey = apiKey
25 | self.jsonDecoder = jsonDecoder
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:146:100: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
144 |
145 | protocol URLSessionDefinition {
146 | func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)?) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
147 | }
148 |
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:150:28: error: cannot find type 'URLRequest' in scope
148 |
149 | extension URLSessionDefinition {
150 | func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
151 | try await data(for: request, delegate: delegate)
152 | }
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:150:51: error: cannot find type 'URLSessionTaskDelegate' in scope
148 |
149 | extension URLSessionDefinition {
150 | func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
151 | try await data(for: request, delegate: delegate)
152 | }
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:150:106: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
148 |
149 | extension URLSessionDefinition {
150 | func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
151 | try await data(for: request, delegate: delegate)
152 | }
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:155:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
153 | }
154 |
155 | extension URLSession: URLSessionDefinition { }
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
156 |
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:19:86: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 | /// - Parameter apiKey: The API Key from Tibber
18 | public convenience init(apiKey: String) {
19 | self.init(apiKey: apiKey, jsonDecoder: JSONDecoder(), urlSession: URLSession.shared)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
20 | }
21 |
/host/spi-builder-workspace/Sources/TibberSwift/GraphQL/GraphQLOperation.swift:23:50: error: cannot find type 'URLRequest' in scope
21 | protocol GraphQLOperationDefinition {
22 | func encode(to encoder: Encoder) throws
23 | func getURLRequest(apiKey: String) throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
24 | }
25 |
/host/spi-builder-workspace/Sources/TibberSwift/GraphQL/GraphQLOperation.swift:80:59: error: cannot find type 'URLRequest' in scope
78 | }
79 |
80 | internal func getURLRequest(apiKey: String) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
81 | var request = URLRequest(url: url)
82 |
/host/spi-builder-workspace/Sources/TibberSwift/TibberSwift.swift:94:64: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
92 | logger.info("Received response. Got data of \(data.count) bytes.")
93 |
94 | guard let statusCode = (response as? HTTPURLResponse)?.statusCode else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
95 | logger.error("Invalid response received. Could not get a status code.")
96 | throw TibberSwiftError.invalidResponse
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[18/32] Compiling TibberSwift HomesOperation.swift
[19/32] Compiling TibberSwift ConsumptionInput.swift
[20/32] Compiling TibberSwift EmptyInput.swift
[21/32] Compiling TibberSwift LoggedInUserOperation.swift
[22/32] Compiling TibberSwift PriceInfoTodayOperation.swift
[23/32] Compiling TibberSwift PushNotificationOperation.swift
[24/32] Compiling TibberSwift GraphQLResult.swift
[25/32] Compiling TibberSwift ConsumptionOperation.swift
[26/32] Compiling TibberSwift PriceInfoToday.swift
[27/32] Compiling TibberSwift PushNotificationResult.swift
[28/32] Compiling TibberSwift Consumption.swift
[29/32] Compiling TibberSwift Home.swift
[30/32] Compiling TibberSwift LoggedInUser.swift
[31/32] Compiling TibberSwift JSONDecoder+Date.swift
/host/spi-builder-workspace/Sources/TibberSwift/GraphQL/GraphQLOperation.swift:23:50: error: cannot find type 'URLRequest' in scope
21 | protocol GraphQLOperationDefinition {
22 | func encode(to encoder: Encoder) throws
23 | func getURLRequest(apiKey: String) throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
24 | }
25 |
/host/spi-builder-workspace/Sources/TibberSwift/GraphQL/GraphQLOperation.swift:80:59: error: cannot find type 'URLRequest' in scope
78 | }
79 |
80 | internal func getURLRequest(apiKey: String) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
81 | var request = URLRequest(url: url)
82 |
/host/spi-builder-workspace/Sources/TibberSwift/GraphQL/GraphQLOperation.swift:81:23: error: cannot find 'URLRequest' in scope
79 |
80 | internal func getURLRequest(apiKey: String) throws -> URLRequest {
81 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
82 |
83 | request.httpMethod = "POST"
[32/32] Compiling TibberSwift GraphQLOperation.swift
/host/spi-builder-workspace/Sources/TibberSwift/GraphQL/GraphQLOperation.swift:23:50: error: cannot find type 'URLRequest' in scope
21 | protocol GraphQLOperationDefinition {
22 | func encode(to encoder: Encoder) throws
23 | func getURLRequest(apiKey: String) throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
24 | }
25 |
/host/spi-builder-workspace/Sources/TibberSwift/GraphQL/GraphQLOperation.swift:80:59: error: cannot find type 'URLRequest' in scope
78 | }
79 |
80 | internal func getURLRequest(apiKey: String) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
81 | var request = URLRequest(url: url)
82 |
/host/spi-builder-workspace/Sources/TibberSwift/GraphQL/GraphQLOperation.swift:81:23: error: cannot find 'URLRequest' in scope
79 |
80 | internal func getURLRequest(apiKey: String) throws -> URLRequest {
81 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
82 |
83 | request.httpMethod = "POST"
BUILD FAILURE 6.3 wasm