The Swift Package Index logo.Swift Package Index

Build Information

Failed to build StormGlass, reference main (4bf53a), with Swift 6.3 for Wasm on 12 Apr 2026 10:44:36 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>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/cruisea-app/stormglass-swift.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/cruisea-app/stormglass-swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 4bf53a5 Update README.md
Cloned https://github.com/cruisea-app/stormglass-swift.git
Revision (git rev-parse @):
4bf53a5fffb0a051ed4741be7be469fc8a5d4b4f
SUCCESS checkout https://github.com/cruisea-app/stormglass-swift.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/cruisea-app/stormglass-swift.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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/19] Compiling StormGlass SGWeatherPointRequest.swift
/host/spi-builder-workspace/Sources/StormGlass/Networking/SGNetworking.swift:10:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  8 |     internal let endpoint: Endpoint
  9 |     internal let apiKeyOverride: String?
 10 |     internal let urlSession: URLSession
    |                              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |
 12 |     public init(
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/StormGlass/Networking/SGNetworking.swift:15:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |         endpoint: Endpoint,
 14 |         apiKey: String? = nil,
 15 |         urlSession: URLSession = .shared
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |     ) {
 17 |         self.endpoint = endpoint
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/StormGlass/Networking/SGNetworking.swift:15:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 13 |         endpoint: Endpoint,
 14 |         apiKey: String? = nil,
 15 |         urlSession: URLSession = .shared
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 16 |     ) {
 17 |         self.endpoint = endpoint
/host/spi-builder-workspace/Sources/StormGlass/Networking/SGNetworking.swift:15:35: error: value of type '_' expected to be instance of class or class-constrained type
 13 |         endpoint: Endpoint,
 14 |         apiKey: String? = nil,
 15 |         urlSession: URLSession = .shared
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
 16 |     ) {
 17 |         self.endpoint = endpoint
/host/spi-builder-workspace/Sources/StormGlass/Networking/SGNetworking.swift:22:43: error: cannot find type 'URLRequest' in scope
 20 |     }
 21 |
 22 |     internal func makeRequest() throws -> URLRequest {
    |                                           `- error: cannot find type 'URLRequest' in scope
 23 |         guard var components = URLComponents(string: SGConfiguration.shared.host) else {
 24 |             throw SGServiceError.badURL
/host/spi-builder-workspace/Sources/StormGlass/Networking/SGNetworking.swift:34:23: error: cannot find 'URLRequest' in scope
 32 |         }
 33 |
 34 |         var request = URLRequest(
    |                       `- error: cannot find 'URLRequest' in scope
 35 |             url: url,
 36 |             cachePolicy: .useProtocolCachePolicy
/host/spi-builder-workspace/Sources/StormGlass/Networking/SGNetworking.swift:36:27: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
 34 |         var request = URLRequest(
 35 |             url: url,
 36 |             cachePolicy: .useProtocolCachePolicy
    |                           `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
 37 |         )
 38 |
/host/spi-builder-workspace/Sources/StormGlass/Networking/SGNetworking.swift:71:39: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 69 |     public func fetch(completion: @escaping (Result<Endpoint.Response, Error>) -> Void) {
 70 |         do {
 71 |             let task = try urlSession.dataTask(with: makeRequest()) { data, response, error in
    |                                       `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 72 |                 // Network Errors
 73 |
[4/19] Compiling StormGlass SGNetworking.swift
/host/spi-builder-workspace/Sources/StormGlass/Networking/SGNetworking.swift:10:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  8 |     internal let endpoint: Endpoint
  9 |     internal let apiKeyOverride: String?
 10 |     internal let urlSession: URLSession
    |                              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |
 12 |     public init(
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/StormGlass/Networking/SGNetworking.swift:15:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |         endpoint: Endpoint,
 14 |         apiKey: String? = nil,
 15 |         urlSession: URLSession = .shared
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |     ) {
 17 |         self.endpoint = endpoint
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/StormGlass/Networking/SGNetworking.swift:15:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 13 |         endpoint: Endpoint,
 14 |         apiKey: String? = nil,
 15 |         urlSession: URLSession = .shared
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 16 |     ) {
 17 |         self.endpoint = endpoint
/host/spi-builder-workspace/Sources/StormGlass/Networking/SGNetworking.swift:15:35: error: value of type '_' expected to be instance of class or class-constrained type
 13 |         endpoint: Endpoint,
 14 |         apiKey: String? = nil,
 15 |         urlSession: URLSession = .shared
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
 16 |     ) {
 17 |         self.endpoint = endpoint
/host/spi-builder-workspace/Sources/StormGlass/Networking/SGNetworking.swift:22:43: error: cannot find type 'URLRequest' in scope
 20 |     }
 21 |
 22 |     internal func makeRequest() throws -> URLRequest {
    |                                           `- error: cannot find type 'URLRequest' in scope
 23 |         guard var components = URLComponents(string: SGConfiguration.shared.host) else {
 24 |             throw SGServiceError.badURL
/host/spi-builder-workspace/Sources/StormGlass/Networking/SGNetworking.swift:34:23: error: cannot find 'URLRequest' in scope
 32 |         }
 33 |
 34 |         var request = URLRequest(
    |                       `- error: cannot find 'URLRequest' in scope
 35 |             url: url,
 36 |             cachePolicy: .useProtocolCachePolicy
/host/spi-builder-workspace/Sources/StormGlass/Networking/SGNetworking.swift:36:27: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
 34 |         var request = URLRequest(
 35 |             url: url,
 36 |             cachePolicy: .useProtocolCachePolicy
    |                           `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
 37 |         )
 38 |
/host/spi-builder-workspace/Sources/StormGlass/Networking/SGNetworking.swift:71:39: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 69 |     public func fetch(completion: @escaping (Result<Endpoint.Response, Error>) -> Void) {
 70 |         do {
 71 |             let task = try urlSession.dataTask(with: makeRequest()) { data, response, error in
    |                                       `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 72 |                 // Network Errors
 73 |
[5/21] Compiling StormGlass SGTideStationsAreaRequest.swift
[6/21] Compiling StormGlass SGTideStationsListRequest.swift
[7/21] Compiling StormGlass SGTideExtremesPointRequest.swift
[8/21] Compiling StormGlass SGTideSeaLevelPointRequest.swift
[9/21] Compiling StormGlass SGSolarPointRequest.swift
[10/21] Compiling StormGlass SGTideDatum.swift
[11/21] Compiling StormGlass SGParameterEncodable.swift
[12/21] Compiling StormGlass SGConfiguration.swift
[13/21] Compiling StormGlass SGAstronomyPointRequest.swift
[14/21] Compiling StormGlass SGBioPointRequest.swift
[15/21] Compiling StormGlass SGElevationPointRequest.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[16/21] Compiling StormGlass SGCoordinate.swift
[17/21] Compiling StormGlass SGEndpoint.swift
[18/21] Compiling StormGlass SGResponseMetadata.swift
[19/21] Emitting module StormGlass
/host/spi-builder-workspace/Sources/StormGlass/Networking/SGNetworking.swift:10:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  8 |     internal let endpoint: Endpoint
  9 |     internal let apiKeyOverride: String?
 10 |     internal let urlSession: URLSession
    |                              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |
 12 |     public init(
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/StormGlass/Networking/SGNetworking.swift:15:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |         endpoint: Endpoint,
 14 |         apiKey: String? = nil,
 15 |         urlSession: URLSession = .shared
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |     ) {
 17 |         self.endpoint = endpoint
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/StormGlass/Networking/SGNetworking.swift:15:35: error: value of type '_' expected to be instance of class or class-constrained type
 13 |         endpoint: Endpoint,
 14 |         apiKey: String? = nil,
 15 |         urlSession: URLSession = .shared
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
 16 |     ) {
 17 |         self.endpoint = endpoint
/host/spi-builder-workspace/Sources/StormGlass/Networking/SGNetworking.swift:15:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 13 |         endpoint: Endpoint,
 14 |         apiKey: String? = nil,
 15 |         urlSession: URLSession = .shared
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 16 |     ) {
 17 |         self.endpoint = endpoint
/host/spi-builder-workspace/Sources/StormGlass/Networking/SGNetworking.swift:22:43: error: cannot find type 'URLRequest' in scope
 20 |     }
 21 |
 22 |     internal func makeRequest() throws -> URLRequest {
    |                                           `- error: cannot find type 'URLRequest' in scope
 23 |         guard var components = URLComponents(string: SGConfiguration.shared.host) else {
 24 |             throw SGServiceError.badURL
[20/21] Compiling StormGlass SGDataSource.swift
[21/21] Compiling StormGlass SGServiceError.swift
BUILD FAILURE 6.3 wasm