Build Information
Failed to build SwiftMiscUtility, reference 0.0.0 (6b9e52), with Swift 6.2 for Android on 19 Jun 2025 09:30:09 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>&1Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/erica/Swift-Misc-Utility.git
Reference: 0.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/erica/Swift-Misc-Utility
* tag 0.0.0 -> FETCH_HEAD
HEAD is now at 6b9e523 Initial commit
Cloned https://github.com/erica/Swift-Misc-Utility.git
Revision (git rev-parse @):
6b9e52306d2ce932a840a266eca396112199178a
SUCCESS checkout https://github.com/erica/Swift-Misc-Utility.git at 0.0.0
========================================
Build
========================================
Selected platform: android
Swift version: 6.2
Building package at path: $PWD
https://github.com/erica/Swift-Misc-Utility.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
Fetching https://github.com/erica/Swift-General-Utility
[1/101] Fetching swift-general-utility
Fetched https://github.com/erica/Swift-General-Utility from cache (0.29s)
Computing version for https://github.com/erica/Swift-General-Utility
Computed https://github.com/erica/Swift-General-Utility at 0.0.8 (0.71s)
Creating working copy for https://github.com/erica/Swift-General-Utility
Working copy of https://github.com/erica/Swift-General-Utility resolved at 0.0.8
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-8C5A4AE7A8CE2BA.txt
[4/5] Compiling GeneralUtility Utility.swift
[5/5] Emitting module GeneralUtility
[7/15] Compiling SwiftMiscUtility RuntimeError.swift
[8/16] Compiling SwiftMiscUtility SynchronousData.swift
/host/spi-builder-workspace/Sources/SwiftMiscUtility/SynchronousData.swift:11:59: error: cannot find type 'URLRequest' in scope
9 | /// - Parameter completion: A closure to execute asynchronously when the data task completes.
10 | /// - Returns: The retrieved session data.
11 | public static func requestAsynchronousData(_ request: URLRequest, completion: @escaping (Result<Data, Error>) -> Void) -> Void {
| `- error: cannot find type 'URLRequest' in scope
12 | let task = URLSession.shared.dataTask(with: request) { data, _, error -> Void in
13 | completion(Result(data, error))
/host/spi-builder-workspace/Sources/SwiftMiscUtility/SynchronousData.swift:22:58: error: cannot find type 'URLRequest' in scope
20 | /// - Throws: Any returned error on `Result.get`.
21 | /// - Returns: The retrieved session data.
22 | public static func requestSynchronousData(_ request: URLRequest) throws -> Data {
| `- error: cannot find type 'URLRequest' in scope
23 | let semaphore = DispatchSemaphore(value: 0)
24 | var received: Result<Data, Error> = Result(Data(), nil)
/host/spi-builder-workspace/Sources/SwiftMiscUtility/SynchronousData.swift:12:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
10 | /// - Returns: The retrieved session data.
11 | public static func requestAsynchronousData(_ request: URLRequest, completion: @escaping (Result<Data, Error>) -> Void) -> Void {
12 | let task = URLSession.shared.dataTask(with: request) { data, _, error -> Void in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
13 | completion(Result(data, error))
14 | }
[9/16] Compiling SwiftMiscUtility String+Utility.swift
[10/16] Compiling SwiftMiscUtility Rounding.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/16] Compiling SwiftMiscUtility Applicative.swift
[12/16] Compiling SwiftMiscUtility Collection+Utility.swift
[13/16] Compiling SwiftMiscUtility Exponentiation.swift
[14/16] Compiling SwiftMiscUtility Result+Utility.swift
[15/16] Emitting module SwiftMiscUtility
/host/spi-builder-workspace/Sources/SwiftMiscUtility/SynchronousData.swift:11:59: error: cannot find type 'URLRequest' in scope
9 | /// - Parameter completion: A closure to execute asynchronously when the data task completes.
10 | /// - Returns: The retrieved session data.
11 | public static func requestAsynchronousData(_ request: URLRequest, completion: @escaping (Result<Data, Error>) -> Void) -> Void {
| `- error: cannot find type 'URLRequest' in scope
12 | let task = URLSession.shared.dataTask(with: request) { data, _, error -> Void in
13 | completion(Result(data, error))
/host/spi-builder-workspace/Sources/SwiftMiscUtility/SynchronousData.swift:22:58: error: cannot find type 'URLRequest' in scope
20 | /// - Throws: Any returned error on `Result.get`.
21 | /// - Returns: The retrieved session data.
22 | public static func requestSynchronousData(_ request: URLRequest) throws -> Data {
| `- error: cannot find type 'URLRequest' in scope
23 | let semaphore = DispatchSemaphore(value: 0)
24 | var received: Result<Data, Error> = Result(Data(), nil)
[16/16] Compiling SwiftMiscUtility Utility+SideEffect.swift
BUILD FAILURE 6.2 android