The Swift Package Index logo.Swift Package Index

Build Information

Failed to build GameAnalyticsSDK, reference 1.0.0 (8bb683), with Swift 6.2 for Android on 14 Jul 2026 20:18:02 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886770-3":/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:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build Log

========================================
RunAll
========================================
Builder version: e8bafa5c5d5b3cc8a20258ddf060ad6c89f46bf9
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/THSoftware/GameAnalyticsSDK.git
Reference: 1.0.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/THSoftware/GameAnalyticsSDK
 * tag               1.0.0      -> FETCH_HEAD
HEAD is now at 8bb6832 Initial release — v1.0.0
Cloned https://github.com/THSoftware/GameAnalyticsSDK.git
Revision (git rev-parse @):
8bb68320870b69f815d200ede3dd3f8ef645ccda
SUCCESS checkout https://github.com/THSoftware/GameAnalyticsSDK.git at 1.0.0
========================================
Build
========================================
Selected platform:         android
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-3":/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:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:3f0849bce0d177c252f57ff0847fffe59d625aee973279c71a52a43c740d3c90
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.2-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--11D90AFD9DD3AB2.txt
[3/7] Compiling GameAnalyticsSDK GameAnalytics.swift
[4/7] Compiling GameAnalyticsSDK Models.swift
[5/7] Compiling GameAnalyticsSDK EventQueue.swift
[6/7] Emitting module GameAnalyticsSDK
[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 android