The Swift Package Index logo.Swift Package Index

Build Information

Failed to build RealDentalCostsAPI, reference main (2e6ea9), with Swift 6.3 for Android on 4 Sep 2026 08:39:25 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 5.0.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/shoopeur-eng/realdentalcosts-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/shoopeur-eng/realdentalcosts-swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 2e6ea95 Add .spi.yml (Swift Package Index external documentation link)
Cloned https://github.com/shoopeur-eng/realdentalcosts-swift.git
Revision (git rev-parse @):
2e6ea95b1a9df4ff4267c83b80d4ce16928cc5bc
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/shoopeur-eng/realdentalcosts-swift.git at main
========================================
Build
========================================
Selected platform:         android
Swift version:             6.3
Building package at path:  $PWD
https://github.com/shoopeur-eng/realdentalcosts-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344845-2":/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.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.3-latest: Pulling from saguaro1/spi-images
Digest: sha256:2b782c87e0bdf114eb0da12f6379a346f06569d6991407581da7dc03d1813adf
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.3-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-272D24FF697CF451.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/4] Emitting module RealDentalCostsAPI
/host/spi-builder-workspace/Sources/RealDentalCostsAPI/RealDentalCostsAPI.swift:18:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |
17 |     private let baseURL: URL
18 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 |     /// Creates a new client.
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/RealDentalCostsAPI/RealDentalCostsAPI.swift:25:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |     ///   - session: URLSession to use for requests; defaults to `.shared`
24 |     public init(baseURL: URL = URL(string: "https://realdentalcosts.com")!,
25 |                 session: URLSession = .shared) {
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |         self.baseURL = baseURL
27 |         self.session = session
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/RealDentalCostsAPI/RealDentalCostsAPI.swift:25:40: error: value of type '_' expected to be instance of class or class-constrained type
23 |     ///   - session: URLSession to use for requests; defaults to `.shared`
24 |     public init(baseURL: URL = URL(string: "https://realdentalcosts.com")!,
25 |                 session: URLSession = .shared) {
   |                                        `- error: value of type '_' expected to be instance of class or class-constrained type
26 |         self.baseURL = baseURL
27 |         self.session = session
/host/spi-builder-workspace/Sources/RealDentalCostsAPI/RealDentalCostsAPI.swift:25:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
23 |     ///   - session: URLSession to use for requests; defaults to `.shared`
24 |     public init(baseURL: URL = URL(string: "https://realdentalcosts.com")!,
25 |                 session: URLSession = .shared) {
   |                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
26 |         self.baseURL = baseURL
27 |         self.session = session
[4/4] Compiling RealDentalCostsAPI RealDentalCostsAPI.swift
/host/spi-builder-workspace/Sources/RealDentalCostsAPI/RealDentalCostsAPI.swift:18:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |
17 |     private let baseURL: URL
18 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 |     /// Creates a new client.
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/RealDentalCostsAPI/RealDentalCostsAPI.swift:25:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |     ///   - session: URLSession to use for requests; defaults to `.shared`
24 |     public init(baseURL: URL = URL(string: "https://realdentalcosts.com")!,
25 |                 session: URLSession = .shared) {
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |         self.baseURL = baseURL
27 |         self.session = session
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/RealDentalCostsAPI/RealDentalCostsAPI.swift:25:40: error: value of type '_' expected to be instance of class or class-constrained type
23 |     ///   - session: URLSession to use for requests; defaults to `.shared`
24 |     public init(baseURL: URL = URL(string: "https://realdentalcosts.com")!,
25 |                 session: URLSession = .shared) {
   |                                        `- error: value of type '_' expected to be instance of class or class-constrained type
26 |         self.baseURL = baseURL
27 |         self.session = session
/host/spi-builder-workspace/Sources/RealDentalCostsAPI/RealDentalCostsAPI.swift:25:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
23 |     ///   - session: URLSession to use for requests; defaults to `.shared`
24 |     public init(baseURL: URL = URL(string: "https://realdentalcosts.com")!,
25 |                 session: URLSession = .shared) {
   |                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
26 |         self.baseURL = baseURL
27 |         self.session = session
/host/spi-builder-workspace/Sources/RealDentalCostsAPI/RealDentalCostsAPI.swift:56:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
54 |
55 |     private func fetch(_ url: URL) async throws -> Data {
56 |         let (data, response) = try await session.data(from: url)
   |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
57 |         guard let http = response as? HTTPURLResponse else {
58 |             throw APIError.invalidResponse
BUILD FAILURE 6.3 android