Build Information
Failed to build GameAnalyticsSDK, reference main (5b187f), with Swift 6.2 for Wasm on 14 Jul 2026 20:15:34 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886770-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: e8bafa5c5d5b3cc8a20258ddf060ad6c89f46bf9
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/THSoftware/GameAnalyticsSDK.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/THSoftware/GameAnalyticsSDK
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 5b187f1 Add MIT LICENSE file
Cloned https://github.com/THSoftware/GameAnalyticsSDK.git
Revision (git rev-parse @):
5b187f175b336e1ee34c0b40760feb50ac2349a9
SUCCESS checkout https://github.com/THSoftware/GameAnalyticsSDK.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/THSoftware/GameAnalyticsSDK.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886770-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:dc8dffc38f1d92eca7ee5312617822470123661393ed20672e77964f9dcaaffb
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/7] Compiling GameAnalyticsSDK EventQueue.swift
[4/7] Compiling GameAnalyticsSDK GameAnalytics.swift
[5/7] Emitting module GameAnalyticsSDK
[6/7] Compiling GameAnalyticsSDK Models.swift
[7/7] Compiling GameAnalyticsSDK APIClient.swift
/host/spi-builder-workspace/Sources/GameAnalyticsSDK/APIClient.swift:11:23: error: cannot find 'URLRequest' in scope
9 | let payload = IngestPayload(apiKey: apiKey, events: events)
10 |
11 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
12 | request.httpMethod = "POST"
13 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/GameAnalyticsSDK/APIClient.swift:17:50: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
15 | request.timeoutInterval = 10
16 |
17 | let (_, response) = try await URLSession.shared.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 |
19 | guard let http = response as? HTTPURLResponse,
/host/spi-builder-workspace/Sources/GameAnalyticsSDK/APIClient.swift:21:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
19 | guard let http = response as? HTTPURLResponse,
20 | (200...299).contains(http.statusCode) else {
21 | let code = (response as? HTTPURLResponse)?.statusCode ?? 0
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
22 | throw APIError.badResponse(code)
23 | }
BUILD FAILURE 6.2 wasm