The Swift Package Index logo.Swift Package Index

Build Information

Failed to build OpenMeteoSdk, reference main (a29c4b), with Swift 6.1 for Wasm on 21 Mar 2026 18:32:21 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-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.1-latest swift build --swift-sdk wasm32-unknown-wasi 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: 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/open-meteo/sdk
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
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 main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/open-meteo/sdk.git
https://github.com/open-meteo/sdk.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "flatbuffers",
      "requirement" : {
        "exact" : [
          "25.9.23"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/google/flatbuffers.git"
    }
  ],
  "manifest_display_name" : "OpenMeteoSdk",
  "name" : "OpenMeteoSdk",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "12.0"
    },
    {
      "name" : "macos",
      "version" : "10.14"
    },
    {
      "name" : "watchos",
      "version" : "8.0"
    }
  ],
  "products" : [
    {
      "name" : "OpenMeteoSdk",
      "targets" : [
        "OpenMeteoSdk"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "OpenMeteoSdkTests",
      "module_type" : "SwiftTarget",
      "name" : "OpenMeteoSdkTests",
      "path" : "swift/Tests",
      "sources" : [
        "OpenMeteoSdkTests/ApiTests.swift",
        "OpenMeteoSdkTests/OpenMeteoSdkTests.swift"
      ],
      "target_dependencies" : [
        "OpenMeteoSdk"
      ],
      "type" : "test"
    },
    {
      "c99name" : "OpenMeteoSdk",
      "module_type" : "SwiftTarget",
      "name" : "OpenMeteoSdk",
      "path" : "swift/Sources",
      "product_dependencies" : [
        "FlatBuffers"
      ],
      "product_memberships" : [
        "OpenMeteoSdk"
      ],
      "sources" : [
        "OpenMeteoSdk/OpenMeteoSdk.swift",
        "OpenMeteoSdk/Unit.swift",
        "OpenMeteoSdk/VariablesWithTime.swift",
        "OpenMeteoSdk/weather_api_generated.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-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.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 swiftpackageindex/spi-images
Digest: sha256:a7b4552feb759c014e60bb7d16019351f72ce4b9f19dbbaa081e1f5551c90672
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest
Fetching https://github.com/google/flatbuffers.git
[1/97849] Fetching flatbuffers
Fetched https://github.com/google/flatbuffers.git from cache (10.60s)
Computing version for https://github.com/google/flatbuffers.git
Computed https://github.com/google/flatbuffers.git at 25.9.23 (11.30s)
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 Scalar.swift
[6/8] Compiling Common Int+extension.swift
[7/8] Compiling Common padding.swift
[8/8] Emitting module Common
[10/28] Emitting module FlatBuffers
[11/30] Compiling FlatBuffers VeriferOptions.swift
[12/30] Compiling FlatBuffers Verifiable.swift
[13/30] Compiling FlatBuffers Verifier.swift
[14/30] Compiling FlatBuffers _InternalByteBuffer.swift
[15/30] Compiling FlatBuffers String+extension.swift
[16/30] Compiling FlatBuffers Struct.swift
[17/30] Compiling FlatBuffers NativeObject.swift
[18/30] Compiling FlatBuffers Offset.swift
[19/30] Compiling FlatBuffers Root.swift
[20/30] Compiling FlatBuffers FlatBufferBuilder.swift
[21/30] Compiling FlatBuffers FlatBufferObject.swift
[22/30] Compiling FlatBuffers FlatBuffersUtils.swift
[23/30] Compiling FlatBuffers FlatbuffersErrors.swift
[24/30] Compiling FlatBuffers Message.swift
[25/30] Compiling FlatBuffers Mutable.swift
[26/30] Compiling FlatBuffers ByteBuffer.swift
[27/30] Compiling FlatBuffers Constants.swift
[28/30] Compiling FlatBuffers Enum.swift
[29/30] Compiling FlatBuffers Table.swift
[30/30] Compiling FlatBuffers TableVerifier.swift
[32/36] Compiling OpenMeteoSdk Unit.swift
[33/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: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: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)
[34/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: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 {
[35/36] Compiling OpenMeteoSdk weather_api_generated.swift
[36/36] Compiling OpenMeteoSdk VariablesWithTime.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-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.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:a7b4552feb759c014e60bb7d16019351f72ce4b9f19dbbaa081e1f5551c90672
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/5] Compiling Common padding.swift
[3/5] Compiling Common Scalar.swift
[4/5] Compiling Common Int+extension.swift
[5/5] Emitting module Common
[7/25] Emitting module FlatBuffers
[8/25] Compiling FlatBuffers ByteBuffer.swift
[9/25] Compiling FlatBuffers Constants.swift
[10/25] Compiling FlatBuffers Enum.swift
[11/27] Compiling FlatBuffers FlatbuffersErrors.swift
[12/27] Compiling FlatBuffers Message.swift
[13/27] Compiling FlatBuffers Mutable.swift
[14/27] Compiling FlatBuffers FlatBufferBuilder.swift
[15/27] Compiling FlatBuffers FlatBufferObject.swift
[16/27] Compiling FlatBuffers FlatBuffersUtils.swift
[17/27] Compiling FlatBuffers Verifier.swift
[18/27] Compiling FlatBuffers _InternalByteBuffer.swift
[19/27] Compiling FlatBuffers String+extension.swift
[20/27] Compiling FlatBuffers Struct.swift
[21/27] Compiling FlatBuffers VeriferOptions.swift
[22/27] Compiling FlatBuffers Verifiable.swift
[23/27] Compiling FlatBuffers NativeObject.swift
[24/27] Compiling FlatBuffers Offset.swift
[25/27] Compiling FlatBuffers Root.swift
[26/27] Compiling FlatBuffers Table.swift
[27/27] Compiling FlatBuffers TableVerifier.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[29/33] 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: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 {
[30/33] Compiling OpenMeteoSdk Unit.swift
[31/33] Compiling OpenMeteoSdk weather_api_generated.swift
[32/33] Compiling OpenMeteoSdk VariablesWithTime.swift
[33/33] 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: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: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 |
BUILD FAILURE 6.1 wasm