The Swift Package Index logo.Swift Package Index

Build Information

Failed to build OpenMeteoSdk, reference v1.26.0 (a29c4b), with Swift 6.2 for Wasm on 21 Mar 2026 18:31:11 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.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.69.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/open-meteo/sdk.git
Reference: v1.26.0
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/open-meteo/sdk
 * tag               v1.26.0    -> FETCH_HEAD
HEAD is now at a29c4b6 fix: use java version 17 for build (#262)
Cloned https://github.com/open-meteo/sdk.git
Revision (git rev-parse @):
a29c4b62dd8445128e6db30f0a6fb5509fa1259c
SUCCESS checkout https://github.com/open-meteo/sdk.git at v1.26.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/open-meteo/sdk.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.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1
wasm-6.2-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:33aba1b4ee401c56e0fd7ee42e05ab1ffc0b6f44277ad19cffda5d456eb09500
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.2-latest
warning: multiple Swift SDKs match target triple `wasm32-unknown-wasip1` and host triple x86_64-unknown-linux-gnu, selected one at /root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/swift-sdk.json
Fetching https://github.com/google/flatbuffers.git
[1/97849] Fetching flatbuffers
Fetched https://github.com/google/flatbuffers.git from cache (9.73s)
Computing version for https://github.com/google/flatbuffers.git
Computed https://github.com/google/flatbuffers.git at 25.9.23 (11.02s)
Creating working copy for https://github.com/google/flatbuffers.git
Working copy of https://github.com/google/flatbuffers.git resolved at 25.9.23
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
[5/8] Compiling Common padding.swift
[6/8] Compiling Common Int+extension.swift
[7/8] Emitting module Common
[8/8] Compiling Common Scalar.swift
[10/28] Compiling FlatBuffers VeriferOptions.swift
[11/28] Compiling FlatBuffers Verifiable.swift
[12/30] Compiling FlatBuffers FlatbuffersErrors.swift
[13/30] Compiling FlatBuffers Message.swift
[14/30] Compiling FlatBuffers Mutable.swift
[15/30] Emitting module FlatBuffers
[16/30] Compiling FlatBuffers FlatBufferBuilder.swift
[17/30] Compiling FlatBuffers FlatBufferObject.swift
[18/30] Compiling FlatBuffers FlatBuffersUtils.swift
[19/30] Compiling FlatBuffers Verifier.swift
[20/30] Compiling FlatBuffers _InternalByteBuffer.swift
[21/30] Compiling FlatBuffers NativeObject.swift
[22/30] Compiling FlatBuffers Offset.swift
[23/30] Compiling FlatBuffers Root.swift
[24/30] Compiling FlatBuffers Table.swift
[25/30] Compiling FlatBuffers TableVerifier.swift
[26/30] Compiling FlatBuffers String+extension.swift
[27/30] Compiling FlatBuffers Struct.swift
[28/30] Compiling FlatBuffers ByteBuffer.swift
[29/30] Compiling FlatBuffers Constants.swift
[30/30] Compiling FlatBuffers Enum.swift
[32/36] Compiling OpenMeteoSdk OpenMeteoSdk.swift
/host/spi-builder-workspace/swift/Sources/OpenMeteoSdk/OpenMeteoSdk.swift:17:49: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |     @available(macOS 12.0, *)
16 |     @available(watchOS 10.0, *)
17 |     public static func fetch(url: URL, session: URLSession = URLSession.shared) async throws -> [WeatherApiResponse] {
   |                                                 `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |         let request = URLRequest(url: url)
19 |         return try await fetch(request: request, session: session)
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/swift/Sources/OpenMeteoSdk/OpenMeteoSdk.swift:17:73: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
15 |     @available(macOS 12.0, *)
16 |     @available(watchOS 10.0, *)
17 |     public static func fetch(url: URL, session: URLSession = URLSession.shared) async throws -> [WeatherApiResponse] {
   |                                                                         `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 |         let request = URLRequest(url: url)
19 |         return try await fetch(request: request, session: session)
/host/spi-builder-workspace/swift/Sources/OpenMeteoSdk/OpenMeteoSdk.swift:17:73: error: default argument value of type '_' cannot be converted to type 'AnyObject'
15 |     @available(macOS 12.0, *)
16 |     @available(watchOS 10.0, *)
17 |     public static func fetch(url: URL, session: URLSession = URLSession.shared) async throws -> [WeatherApiResponse] {
   |                                                                         `- error: default argument value of type '_' cannot be converted to type 'AnyObject'
18 |         let request = URLRequest(url: url)
19 |         return try await fetch(request: request, session: session)
/host/spi-builder-workspace/swift/Sources/OpenMeteoSdk/OpenMeteoSdk.swift:26:39: error: cannot find type 'URLRequest' in scope
24 |     @available(watchOS 10.0, *)
25 |     /// Fetch data using a given URLRequest and decode the Open-Meteo Weather API Flatbuffers structure
26 |     public static func fetch(request: URLRequest, session: URLSession = URLSession.shared) async throws -> [WeatherApiResponse] {
   |                                       `- error: cannot find type 'URLRequest' in scope
27 |         let (data, response) = try await session.data(for: request)
28 |         guard let res = (response as? HTTPURLResponse) else {
/host/spi-builder-workspace/swift/Sources/OpenMeteoSdk/OpenMeteoSdk.swift:26:60: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |     @available(watchOS 10.0, *)
25 |     /// Fetch data using a given URLRequest and decode the Open-Meteo Weather API Flatbuffers structure
26 |     public static func fetch(request: URLRequest, session: URLSession = URLSession.shared) async throws -> [WeatherApiResponse] {
   |                                                            `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |         let (data, response) = try await session.data(for: request)
28 |         guard let res = (response as? HTTPURLResponse) else {
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/swift/Sources/OpenMeteoSdk/OpenMeteoSdk.swift:26:84: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
24 |     @available(watchOS 10.0, *)
25 |     /// Fetch data using a given URLRequest and decode the Open-Meteo Weather API Flatbuffers structure
26 |     public static func fetch(request: URLRequest, session: URLSession = URLSession.shared) async throws -> [WeatherApiResponse] {
   |                                                                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
27 |         let (data, response) = try await session.data(for: request)
28 |         guard let res = (response as? HTTPURLResponse) else {
/host/spi-builder-workspace/swift/Sources/OpenMeteoSdk/OpenMeteoSdk.swift:26:84: error: default argument value of type '_' cannot be converted to type 'AnyObject'
24 |     @available(watchOS 10.0, *)
25 |     /// Fetch data using a given URLRequest and decode the Open-Meteo Weather API Flatbuffers structure
26 |     public static func fetch(request: URLRequest, session: URLSession = URLSession.shared) async throws -> [WeatherApiResponse] {
   |                                                                                    `- error: default argument value of type '_' cannot be converted to type 'AnyObject'
27 |         let (data, response) = try await session.data(for: request)
28 |         guard let res = (response as? HTTPURLResponse) else {
/host/spi-builder-workspace/swift/Sources/OpenMeteoSdk/OpenMeteoSdk.swift:18:23: error: cannot find 'URLRequest' in scope
16 |     @available(watchOS 10.0, *)
17 |     public static func fetch(url: URL, session: URLSession = URLSession.shared) async throws -> [WeatherApiResponse] {
18 |         let request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
19 |         return try await fetch(request: request, session: session)
20 |     }
/host/spi-builder-workspace/swift/Sources/OpenMeteoSdk/OpenMeteoSdk.swift:19:31: error: incorrect argument label in call (have 'request:session:', expected 'url:session:')
17 |     public static func fetch(url: URL, session: URLSession = URLSession.shared) async throws -> [WeatherApiResponse] {
18 |         let request = URLRequest(url: url)
19 |         return try await fetch(request: request, session: session)
   |                               `- error: incorrect argument label in call (have 'request:session:', expected 'url:session:')
20 |     }
21 |
/host/spi-builder-workspace/swift/Sources/OpenMeteoSdk/OpenMeteoSdk.swift:27:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
25 |     /// Fetch data using a given URLRequest and decode the Open-Meteo Weather API Flatbuffers structure
26 |     public static func fetch(request: URLRequest, session: URLSession = URLSession.shared) async throws -> [WeatherApiResponse] {
27 |         let (data, response) = try await session.data(for: request)
   |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
28 |         guard let res = (response as? HTTPURLResponse) else {
29 |             throw OpenMeteoSdkError.error(message: "response is not type HTTPURLResponse")
/host/spi-builder-workspace/swift/Sources/OpenMeteoSdk/OpenMeteoSdk.swift:58:54: error: incorrect argument label in call (have 'data:', expected 'bytes:')
56 |             throw OpenMeteoSdkError.serverError(statusCode: statusCode)
57 |         }
58 |         return getSizePrefixedMessages(bb: ByteBuffer(data: data))
   |                                                      `- error: incorrect argument label in call (have 'data:', expected 'bytes:')
59 |     }
60 |
/host/spi-builder-workspace/swift/Sources/OpenMeteoSdk/OpenMeteoSdk.swift:58:61: error: cannot convert value of type 'Data' to expected argument type '[UInt8]'
56 |             throw OpenMeteoSdkError.serverError(statusCode: statusCode)
57 |         }
58 |         return getSizePrefixedMessages(bb: ByteBuffer(data: data))
   |                                                             `- error: cannot convert value of type 'Data' to expected argument type '[UInt8]'
59 |     }
60 |
/host/spi-builder-workspace/swift/Sources/OpenMeteoSdk/OpenMeteoSdk.swift:65:54: error: incorrect argument label in call (have 'data:', expected 'bytes:')
63 |     /// Thus, memory will be correctly retrained and released
64 |     public static func from(data: Data) -> [Self] {
65 |         return getSizePrefixedMessages(bb: ByteBuffer(data: data))
   |                                                      `- error: incorrect argument label in call (have 'data:', expected 'bytes:')
66 |     }
67 |
/host/spi-builder-workspace/swift/Sources/OpenMeteoSdk/OpenMeteoSdk.swift:65:61: error: cannot convert value of type 'Data' to expected argument type '[UInt8]'
63 |     /// Thus, memory will be correctly retrained and released
64 |     public static func from(data: Data) -> [Self] {
65 |         return getSizePrefixedMessages(bb: ByteBuffer(data: data))
   |                                                             `- error: cannot convert value of type 'Data' to expected argument type '[UInt8]'
66 |     }
67 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[33/36] Emitting module OpenMeteoSdk
/host/spi-builder-workspace/swift/Sources/OpenMeteoSdk/OpenMeteoSdk.swift:17:49: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |     @available(macOS 12.0, *)
16 |     @available(watchOS 10.0, *)
17 |     public static func fetch(url: URL, session: URLSession = URLSession.shared) async throws -> [WeatherApiResponse] {
   |                                                 `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |         let request = URLRequest(url: url)
19 |         return try await fetch(request: request, session: session)
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/swift/Sources/OpenMeteoSdk/OpenMeteoSdk.swift:17:73: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
15 |     @available(macOS 12.0, *)
16 |     @available(watchOS 10.0, *)
17 |     public static func fetch(url: URL, session: URLSession = URLSession.shared) async throws -> [WeatherApiResponse] {
   |                                                                         `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 |         let request = URLRequest(url: url)
19 |         return try await fetch(request: request, session: session)
/host/spi-builder-workspace/swift/Sources/OpenMeteoSdk/OpenMeteoSdk.swift:17:73: error: default argument value of type '_' cannot be converted to type 'AnyObject'
15 |     @available(macOS 12.0, *)
16 |     @available(watchOS 10.0, *)
17 |     public static func fetch(url: URL, session: URLSession = URLSession.shared) async throws -> [WeatherApiResponse] {
   |                                                                         `- error: default argument value of type '_' cannot be converted to type 'AnyObject'
18 |         let request = URLRequest(url: url)
19 |         return try await fetch(request: request, session: session)
/host/spi-builder-workspace/swift/Sources/OpenMeteoSdk/OpenMeteoSdk.swift:26:39: error: cannot find type 'URLRequest' in scope
24 |     @available(watchOS 10.0, *)
25 |     /// Fetch data using a given URLRequest and decode the Open-Meteo Weather API Flatbuffers structure
26 |     public static func fetch(request: URLRequest, session: URLSession = URLSession.shared) async throws -> [WeatherApiResponse] {
   |                                       `- error: cannot find type 'URLRequest' in scope
27 |         let (data, response) = try await session.data(for: request)
28 |         guard let res = (response as? HTTPURLResponse) else {
/host/spi-builder-workspace/swift/Sources/OpenMeteoSdk/OpenMeteoSdk.swift:26:60: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |     @available(watchOS 10.0, *)
25 |     /// Fetch data using a given URLRequest and decode the Open-Meteo Weather API Flatbuffers structure
26 |     public static func fetch(request: URLRequest, session: URLSession = URLSession.shared) async throws -> [WeatherApiResponse] {
   |                                                            `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |         let (data, response) = try await session.data(for: request)
28 |         guard let res = (response as? HTTPURLResponse) else {
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/swift/Sources/OpenMeteoSdk/OpenMeteoSdk.swift:26:84: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
24 |     @available(watchOS 10.0, *)
25 |     /// Fetch data using a given URLRequest and decode the Open-Meteo Weather API Flatbuffers structure
26 |     public static func fetch(request: URLRequest, session: URLSession = URLSession.shared) async throws -> [WeatherApiResponse] {
   |                                                                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
27 |         let (data, response) = try await session.data(for: request)
28 |         guard let res = (response as? HTTPURLResponse) else {
/host/spi-builder-workspace/swift/Sources/OpenMeteoSdk/OpenMeteoSdk.swift:26:84: error: default argument value of type '_' cannot be converted to type 'AnyObject'
24 |     @available(watchOS 10.0, *)
25 |     /// Fetch data using a given URLRequest and decode the Open-Meteo Weather API Flatbuffers structure
26 |     public static func fetch(request: URLRequest, session: URLSession = URLSession.shared) async throws -> [WeatherApiResponse] {
   |                                                                                    `- error: default argument value of type '_' cannot be converted to type 'AnyObject'
27 |         let (data, response) = try await session.data(for: request)
28 |         guard let res = (response as? HTTPURLResponse) else {
[34/36] Compiling OpenMeteoSdk Unit.swift
[35/36] Compiling OpenMeteoSdk VariablesWithTime.swift
[36/36] Compiling OpenMeteoSdk weather_api_generated.swift
BUILD FAILURE 6.2 wasm