The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build SwiftFileTools, reference 1.3.1 (db5c0d), with Swift 6.1 for Android on 29 May 2025 10:34:29 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/heroesofcode/SwiftFileTools.git
Reference: 1.3.1
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/heroesofcode/SwiftFileTools
 * tag               1.3.1      -> FETCH_HEAD
HEAD is now at db5c0d5 Fix version
Cloned https://github.com/heroesofcode/SwiftFileTools.git
Revision (git rev-parse @):
db5c0d5d795f1f9bd0bdd04f2f83248cfc35360e
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/heroesofcode/SwiftFileTools.git at 1.3.1
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/heroesofcode/SwiftFileTools.git
https://github.com/heroesofcode/SwiftFileTools.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-argument-parser",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.4.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-argument-parser"
    },
    {
      "identity" : "rainbow",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "4.0.1",
            "upper_bound" : "5.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/onevcat/Rainbow"
    }
  ],
  "manifest_display_name" : "SwiftFileTools",
  "name" : "SwiftFileTools",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.13"
    }
  ],
  "products" : [
    {
      "name" : "SwiftFileTools",
      "targets" : [
        "SwiftFileTools"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftFileTools",
      "module_type" : "SwiftTarget",
      "name" : "SwiftFileTools",
      "path" : "Sources",
      "product_dependencies" : [
        "ArgumentParser",
        "Rainbow"
      ],
      "product_memberships" : [
        "SwiftFileTools"
      ],
      "sources" : [
        "Core/Colors.swift",
        "Core/Constants.swift",
        "Core/Header.swift",
        "Core/SwiftGen.swift",
        "Core/ViewCode.swift",
        "SwiftFileTools.swift"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Fetching https://github.com/onevcat/Rainbow
Fetching https://github.com/apple/swift-argument-parser
[1/1196] Fetching rainbow
[1197/16575] Fetching rainbow, swift-argument-parser
Fetched https://github.com/onevcat/Rainbow from cache (0.94s)
[10304/15379] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (1.56s)
Computing version for https://github.com/onevcat/Rainbow
Computed https://github.com/onevcat/Rainbow at 4.1.0 (4.06s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.5.1 (0.56s)
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.5.1
Creating working copy for https://github.com/onevcat/Rainbow
Working copy of https://github.com/onevcat/Rainbow resolved at 4.1.0
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/12] Write sources
[5/12] Write swift-version-24593BA9C3E375BF.txt
[7/25] Emitting module ArgumentParserToolInfo
[8/25] Compiling ArgumentParserToolInfo ToolInfo.swift
[9/26] Wrapping AST for ArgumentParserToolInfo for debugging
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/26] Emitting module Rainbow
/host/spi-builder-workspace/.build/checkouts/Rainbow/Sources/OutputTarget.swift:49:58: error: cannot find 'isatty' in scope
47 |         // Check if we are in any term env and the output is a tty.
48 |         let termType = getEnvValue("TERM")
49 |         if let t = termType, t.lowercased() != "dumb" && isatty(fileno(stdout)) != 0 {
   |                                                          `- error: cannot find 'isatty' in scope
50 |             return .console
51 |         }
[12/27] Compiling Rainbow ControlCode.swift
[13/27] Compiling Rainbow ModesExtractor.swift
[14/27] Compiling Rainbow StringGenerator.swift
[15/27] Compiling Rainbow String+Rainbow.swift
[16/65] Compiling Rainbow Style.swift
[17/65] Compiling ArgumentParser Errors.swift
[18/65] Compiling ArgumentParser Flag.swift
[19/65] Compiling ArgumentParser ArgumentVisibility.swift
[20/65] Compiling ArgumentParser CompletionKind.swift
[21/65] Compiling Rainbow Rainbow.swift
[22/65] Compiling Rainbow OutputTarget.swift
/host/spi-builder-workspace/.build/checkouts/Rainbow/Sources/OutputTarget.swift:49:58: error: cannot find 'isatty' in scope
47 |         // Check if we are in any term env and the output is a tty.
48 |         let termType = getEnvValue("TERM")
49 |         if let t = termType, t.lowercased() != "dumb" && isatty(fileno(stdout)) != 0 {
   |                                                          `- error: cannot find 'isatty' in scope
50 |             return .console
51 |         }
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/8] Write swift-version-24593BA9C3E375BF.txt
[3/21] Compiling Rainbow StringGenerator.swift
[4/21] Compiling Rainbow OutputTarget.swift
/host/spi-builder-workspace/.build/checkouts/Rainbow/Sources/OutputTarget.swift:49:58: error: cannot find 'isatty' in scope
47 |         // Check if we are in any term env and the output is a tty.
48 |         let termType = getEnvValue("TERM")
49 |         if let t = termType, t.lowercased() != "dumb" && isatty(fileno(stdout)) != 0 {
   |                                                          `- error: cannot find 'isatty' in scope
50 |             return .console
51 |         }
[5/21] Compiling Rainbow ControlCode.swift
[6/21] Compiling Rainbow ModesExtractor.swift
[7/22] Compiling Rainbow Rainbow.swift
[8/22] Compiling Rainbow String+Rainbow.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/22] Compiling Rainbow BackgroundColor.swift
[10/22] Compiling Rainbow CodesParser.swift
[11/22] Compiling Rainbow Color.swift
[12/22] Compiling Rainbow ColorApproximation.swift
[13/22] Emitting module Rainbow
/host/spi-builder-workspace/.build/checkouts/Rainbow/Sources/OutputTarget.swift:49:58: error: cannot find 'isatty' in scope
47 |         // Check if we are in any term env and the output is a tty.
48 |         let termType = getEnvValue("TERM")
49 |         if let t = termType, t.lowercased() != "dumb" && isatty(fileno(stdout)) != 0 {
   |                                                          `- error: cannot find 'isatty' in scope
50 |             return .console
51 |         }
[14/22] Compiling Rainbow Style.swift
[15/22] Compiling ArgumentParserToolInfo ToolInfo.swift
[16/22] Emitting module ArgumentParserToolInfo
BUILD FAILURE 6.1 android