Build Information
Failed to build SemanticPen, reference v1.0.0 (4014cc), with Swift 6.3 for Android on 16 Apr 2026 14:10:44 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/pushkarsingh32/semanticpen-swift-sdk.git
Reference: v1.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/pushkarsingh32/semanticpen-swift-sdk
* tag v1.0.0 -> FETCH_HEAD
HEAD is now at 4014cc9 Add Swift Package Index configuration
Cloned https://github.com/pushkarsingh32/semanticpen-swift-sdk.git
Revision (git rev-parse @):
4014cc9f84a38b3ef3fd195cb6205cd5aa9ead22
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/pushkarsingh32/semanticpen-swift-sdk.git at v1.0.0
========================================
Build
========================================
Selected platform: android
Swift version: 6.3
Building package at path: $PWD
https://github.com/pushkarsingh32/semanticpen-swift-sdk.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:9008270ea37a55e78725e6225015adb5eff8582da520c5232bf0499f32c36dc4
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--4F562202D5529B1.txt
[3/8] Compiling SemanticPen SemanticPenClient.swift
/host/spi-builder-workspace/Sources/SemanticPen/SemanticPenClient.swift:7:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 | public class SemanticPenClient {
6 | private let configuration: Configuration
7 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | private let jsonDecoder: JSONDecoder
9 | private let jsonEncoder: JSONEncoder
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/SemanticPen/SemanticPenClient.swift:16:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
14 | self.configuration = configuration
15 |
16 | let sessionConfig = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
17 | sessionConfig.timeoutIntervalForRequest = configuration.timeoutInterval
18 | sessionConfig.timeoutIntervalForResource = configuration.timeoutInterval
/host/spi-builder-workspace/Sources/SemanticPen/SemanticPenClient.swift:19:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
17 | sessionConfig.timeoutIntervalForRequest = configuration.timeoutInterval
18 | sessionConfig.timeoutIntervalForResource = configuration.timeoutInterval
19 | self.urlSession = URLSession(configuration: sessionConfig)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
20 |
21 | self.jsonDecoder = JSONDecoder()
/host/spi-builder-workspace/Sources/SemanticPen/SemanticPenClient.swift:100:23: error: cannot find 'URLRequest' in scope
98 | }
99 |
100 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
101 | request.httpMethod = method
102 | request.setValue("Bearer \(configuration.apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/SemanticPen/SemanticPenClient.swift:115:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
113 |
114 | do {
115 | let (data, response) = try await urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
116 |
117 | guard let httpResponse = response as? HTTPURLResponse else {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/8] Compiling SemanticPen SemanticPen.swift
[5/8] Compiling SemanticPen Configuration.swift
[6/8] Emitting module SemanticPen
/host/spi-builder-workspace/Sources/SemanticPen/SemanticPenClient.swift:7:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 | public class SemanticPenClient {
6 | private let configuration: Configuration
7 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | private let jsonDecoder: JSONDecoder
9 | private let jsonEncoder: JSONEncoder
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
[7/8] Compiling SemanticPen Errors.swift
[8/8] Compiling SemanticPen Models.swift
BUILD FAILURE 6.3 android