The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SemanticPen, reference main (4014cc), with Swift 6.2 for Android on 19 Jul 2025 21:05:11 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/pushkarsingh32/semanticpen-swift-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/pushkarsingh32/semanticpen-swift-sdk
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
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 main
========================================
Build
========================================
Selected platform:         android
Swift version:             6.2
Building package at path:  $PWD
https://github.com/pushkarsingh32/semanticpen-swift-sdk.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:b7c4a6b4153ff40ef9277e2157e708f835b8eb011095d53bd8db4594eb2b7798
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-8C5A4AE7A8CE2BA.txt
[3/8] Compiling SemanticPen SemanticPen.swift
[4/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)
[5/8] Compiling SemanticPen Errors.swift
[6/8] Compiling SemanticPen Configuration.swift
[7/8] Compiling SemanticPen Models.swift
[8/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
BUILD FAILURE 6.2 android