The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Switchboard, reference main (67bfa0), with Swift 6.2 for Android on 22 Oct 2026 22:47:26 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886770-0":/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: 5.1.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/DeepakPal25/Switchboard.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/DeepakPal25/Switchboard
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 67bfa01 Fix install instructions: YOUR_USERNAME placeholder -> DeepakPal25
Cloned https://github.com/DeepakPal25/Switchboard.git
Revision (git rev-parse @):
67bfa0170118d65ac87cff4f460a21eb2366431c
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/DeepakPal25/Switchboard.git at main
========================================
Build
========================================
Selected platform:         android
Swift version:             6.2
Building package at path:  $PWD
https://github.com/DeepakPal25/Switchboard.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886770-0":/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:d84c435a77e30f1b4b40344b42d2ce7e8dc33d04eebdaebfb0e2bc42b4ff2af5
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.2-latest
Fetching https://github.com/swiftlang/swift-syntax.git
[1/80972] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax.git from cache (3.96s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 602.0.0 (4.95s)
Creating working copy for https://github.com/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 602.0.0
Downloading package prebuilt https://download.swift.org/prebuilts/swift-syntax/602.0.0/swift-6.2-RELEASE-MacroSupport-ubuntu_noble_x86_64.tar.gz
Downloaded https://download.swift.org/prebuilts/swift-syntax/602.0.0/swift-6.2-RELEASE-MacroSupport-ubuntu_noble_x86_64.tar.gz (0.21s)
Building for debugging...
[0/8] Write sources
[4/8] Write swift-version--11D90AFD9DD3AB2.txt
[6/10] Compiling SwitchboardMacros FeatureFlagsMacro.swift
[7/10] Emitting module SwitchboardMacros
[8/11] Wrapping AST for SwitchboardMacros for debugging
[9/11] Write Objects.LinkFileList
[10/11] Linking SwitchboardMacros-tool
[12/25] Compiling Switchboard Storage.swift
/host/spi-builder-workspace/Sources/Switchboard/Storage.swift:17:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 15 |     public let url: URL
 16 |     public let headers: [String: String]
 17 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 18 |
 19 |     public init(url: URL, headers: [String: String] = [:], session: URLSession = .shared) {
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/Switchboard/Storage.swift:19:69: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 |     private let session: URLSession
 18 |
 19 |     public init(url: URL, headers: [String: String] = [:], session: URLSession = .shared) {
    |                                                                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |         self.url = url
 21 |         self.headers = headers
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/Switchboard/Storage.swift:19:83: error: value of type '_' expected to be instance of class or class-constrained type
 17 |     private let session: URLSession
 18 |
 19 |     public init(url: URL, headers: [String: String] = [:], session: URLSession = .shared) {
    |                                                                                   `- error: value of type '_' expected to be instance of class or class-constrained type
 20 |         self.url = url
 21 |         self.headers = headers
/host/spi-builder-workspace/Sources/Switchboard/Storage.swift:19:83: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 17 |     private let session: URLSession
 18 |
 19 |     public init(url: URL, headers: [String: String] = [:], session: URLSession = .shared) {
    |                                                                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 20 |         self.url = url
 21 |         self.headers = headers
/host/spi-builder-workspace/Sources/Switchboard/Storage.swift:17:17: error: stored property 'session' of 'Sendable'-conforming struct 'HTTPRemoteConfigSource' has non-Sendable type 'URLSession' (aka 'AnyObject')
 15 |     public let url: URL
 16 |     public let headers: [String: String]
 17 |     private let session: URLSession
    |                 `- error: stored property 'session' of 'Sendable'-conforming struct 'HTTPRemoteConfigSource' has non-Sendable type 'URLSession' (aka 'AnyObject')
 18 |
 19 |     public init(url: URL, headers: [String: String] = [:], session: URLSession = .shared) {
/host/spi-builder-workspace/Sources/Switchboard/Storage.swift:72:36: error: type 'URL' has no member 'cachesDirectory'
 70 |     public let fileURL: URL
 71 |
 72 |     public init(fileURL: URL = URL.cachesDirectory.appending(path: "Switchboard/remote-config.json")) {
    |                                    `- error: type 'URL' has no member 'cachesDirectory'
 73 |         self.fileURL = fileURL
 74 |     }
/host/spi-builder-workspace/Sources/Switchboard/Storage.swift:26:23: error: cannot find 'URLRequest' in scope
 24 |
 25 |     public func fetch() async throws -> RemoteConfig {
 26 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 27 |         request.cachePolicy = .reloadIgnoringLocalCacheData
 28 |         for (field, value) in headers {
/host/spi-builder-workspace/Sources/Switchboard/Storage.swift:27:32: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
 25 |     public func fetch() async throws -> RemoteConfig {
 26 |         var request = URLRequest(url: url)
 27 |         request.cachePolicy = .reloadIgnoringLocalCacheData
    |                                `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
 28 |         for (field, value) in headers {
 29 |             request.setValue(value, forHTTPHeaderField: field)
/host/spi-builder-workspace/Sources/Switchboard/Storage.swift:31:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 29 |             request.setValue(value, forHTTPHeaderField: field)
 30 |         }
 31 |         let (data, response) = try await session.data(for: request)
    |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 32 |         guard let http = response as? HTTPURLResponse else {
 33 |             throw RemoteConfigError.invalidResponse
error: emit-module command failed with exit code 1 (use -v to see invocation)
[13/25] Compiling Switchboard Macros.swift
[14/25] Compiling Switchboard FlagDefinition.swift
[15/25] Compiling Switchboard FlagValue.swift
[16/25] Compiling Switchboard RemoteConfig.swift
[17/25] Emitting module Switchboard
/host/spi-builder-workspace/Sources/Switchboard/Storage.swift:72:36: error: type 'URL' has no member 'cachesDirectory'
 70 |     public let fileURL: URL
 71 |
 72 |     public init(fileURL: URL = URL.cachesDirectory.appending(path: "Switchboard/remote-config.json")) {
    |                                    `- error: type 'URL' has no member 'cachesDirectory'
 73 |         self.fileURL = fileURL
 74 |     }
/host/spi-builder-workspace/Sources/Switchboard/Storage.swift:17:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 15 |     public let url: URL
 16 |     public let headers: [String: String]
 17 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 18 |
 19 |     public init(url: URL, headers: [String: String] = [:], session: URLSession = .shared) {
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/Switchboard/Storage.swift:19:69: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 |     private let session: URLSession
 18 |
 19 |     public init(url: URL, headers: [String: String] = [:], session: URLSession = .shared) {
    |                                                                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |         self.url = url
 21 |         self.headers = headers
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/Switchboard/Storage.swift:19:83: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 17 |     private let session: URLSession
 18 |
 19 |     public init(url: URL, headers: [String: String] = [:], session: URLSession = .shared) {
    |                                                                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 20 |         self.url = url
 21 |         self.headers = headers
/host/spi-builder-workspace/Sources/Switchboard/Storage.swift:19:83: error: value of type '_' expected to be instance of class or class-constrained type
 17 |     private let session: URLSession
 18 |
 19 |     public init(url: URL, headers: [String: String] = [:], session: URLSession = .shared) {
    |                                                                                   `- error: value of type '_' expected to be instance of class or class-constrained type
 20 |         self.url = url
 21 |         self.headers = headers
/host/spi-builder-workspace/Sources/Switchboard/Storage.swift:17:17: error: stored property 'session' of 'Sendable'-conforming struct 'HTTPRemoteConfigSource' has non-Sendable type 'URLSession' (aka 'AnyObject')
 15 |     public let url: URL
 16 |     public let headers: [String: String]
 17 |     private let session: URLSession
    |                 `- error: stored property 'session' of 'Sendable'-conforming struct 'HTTPRemoteConfigSource' has non-Sendable type 'URLSession' (aka 'AnyObject')
 18 |
 19 |     public init(url: URL, headers: [String: String] = [:], session: URLSession = .shared) {
[18/25] Compiling Switchboard FlagStore.swift
/host/spi-builder-workspace/Sources/Switchboard/Storage.swift:72:36: error: type 'URL' has no member 'cachesDirectory'
 70 |     public let fileURL: URL
 71 |
 72 |     public init(fileURL: URL = URL.cachesDirectory.appending(path: "Switchboard/remote-config.json")) {
    |                                    `- error: type 'URL' has no member 'cachesDirectory'
 73 |         self.fileURL = fileURL
 74 |     }
BUILD FAILURE 6.2 android