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 swift-ansi-picker, reference main (4e9ce9), with Swift 6.1 for Android on 29 May 2025 04:17:58 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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/rechsteiner/swift-ansi-picker.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/rechsteiner/swift-ansi-picker
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 4e9ce93 Add library product to Package.swift
Cloned https://github.com/rechsteiner/swift-ansi-picker.git
Revision (git rev-parse @):
4e9ce930a92afe34b7c41052475dbd56a2c2745d
SUCCESS checkout https://github.com/rechsteiner/swift-ansi-picker.git at main
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/rechsteiner/swift-ansi-picker.git
https://github.com/rechsteiner/swift-ansi-picker.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "swift-ansi-picker",
  "name" : "swift-ansi-picker",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Picker",
      "targets" : [
        "Picker"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "example",
      "targets" : [
        "example"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "example",
      "module_type" : "SwiftTarget",
      "name" : "example",
      "path" : "Examples",
      "product_memberships" : [
        "example"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "Picker"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "Picker",
      "module_type" : "SwiftTarget",
      "name" : "Picker",
      "path" : "Sources",
      "product_memberships" : [
        "Picker",
        "example"
      ],
      "sources" : [
        "Picker.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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
Building for debugging...
[0/7] Write sources
[2/7] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/9] Emitting module Picker
/host/spi-builder-workspace/Sources/Picker.swift:257:31: error: cannot find type 'termios' in scope
255 | }
256 |
257 | private var originalTerminal: termios?
    |                               `- error: cannot find type 'termios' in scope
258 |
259 | private func handleSignal(signal: Int32) {
/host/spi-builder-workspace/Sources/Picker.swift:257:13: warning: var 'originalTerminal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
255 | }
256 |
257 | private var originalTerminal: termios?
    |             |- warning: var 'originalTerminal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'originalTerminal' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'originalTerminal' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
258 |
259 | private func handleSignal(signal: Int32) {
[5/9] Compiling Picker Picker.swift
/host/spi-builder-workspace/Sources/Picker.swift:257:31: error: cannot find type 'termios' in scope
255 | }
256 |
257 | private var originalTerminal: termios?
    |                               `- error: cannot find type 'termios' in scope
258 |
259 | private func handleSignal(signal: Int32) {
/host/spi-builder-workspace/Sources/Picker.swift:257:13: warning: var 'originalTerminal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
255 | }
256 |
257 | private var originalTerminal: termios?
    |             |- warning: var 'originalTerminal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'originalTerminal' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'originalTerminal' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
258 |
259 | private func handleSignal(signal: Int32) {
/host/spi-builder-workspace/Sources/Picker.swift:163:22: error: cannot find 'read' in scope
161 |     private func readControlCharacter() -> ControlCharacter? {
162 |         var key: UInt8 = 0
163 |         let result = read(STDIN_FILENO, &key, 1)
    |                      `- error: cannot find 'read' in scope
164 |         guard result == 1 else { return nil }
165 |
/host/spi-builder-workspace/Sources/Picker.swift:163:27: error: cannot find 'STDIN_FILENO' in scope
161 |     private func readControlCharacter() -> ControlCharacter? {
162 |         var key: UInt8 = 0
163 |         let result = read(STDIN_FILENO, &key, 1)
    |                           `- error: cannot find 'STDIN_FILENO' in scope
164 |         guard result == 1 else { return nil }
165 |
/host/spi-builder-workspace/Sources/Picker.swift:179:16: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
177 |         print(escapeCode, terminator: "")
178 |         // Ensure the output is immediately flushed to the terminal.
179 |         fflush(stdout)
    |                `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
180 |     }
181 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/stdio.h:63:23: note: var declared here
 61 | #if __ANDROID_API__ >= 23
 62 | extern FILE* _Nonnull stdin __INTRODUCED_IN(23);
 63 | extern FILE* _Nonnull stdout __INTRODUCED_IN(23);
    |                       `- note: var declared here
 64 | extern FILE* _Nonnull stderr __INTRODUCED_IN(23);
 65 |
/host/spi-builder-workspace/Sources/Picker.swift:192:24: error: cannot find 'termios' in scope
190 |     private func enableNonCanonicalMode() {
191 |         // Switch standard input to non-canonical mode to read the response immediately.
192 |         var terminal = termios()
    |                        `- error: cannot find 'termios' in scope
193 |         tcgetattr(STDIN_FILENO, &terminal)
194 |         // Save the current termios to restore later
/host/spi-builder-workspace/Sources/Picker.swift:193:9: error: cannot find 'tcgetattr' in scope
191 |         // Switch standard input to non-canonical mode to read the response immediately.
192 |         var terminal = termios()
193 |         tcgetattr(STDIN_FILENO, &terminal)
    |         `- error: cannot find 'tcgetattr' in scope
194 |         // Save the current termios to restore later
195 |         originalTerminal = terminal
/host/spi-builder-workspace/Sources/Picker.swift:193:19: error: cannot find 'STDIN_FILENO' in scope
191 |         // Switch standard input to non-canonical mode to read the response immediately.
192 |         var terminal = termios()
193 |         tcgetattr(STDIN_FILENO, &terminal)
    |                   `- error: cannot find 'STDIN_FILENO' in scope
194 |         // Save the current termios to restore later
195 |         originalTerminal = terminal
/host/spi-builder-workspace/Sources/Picker.swift:196:35: error: cannot find 'ECHO' in scope
194 |         // Save the current termios to restore later
195 |         originalTerminal = terminal
196 |         terminal.c_lflag &= ~UInt(ECHO | ICANON)
    |                                   `- error: cannot find 'ECHO' in scope
197 |         tcsetattr(STDIN_FILENO, TCSANOW, &terminal)
198 |
/host/spi-builder-workspace/Sources/Picker.swift:196:42: error: cannot find 'ICANON' in scope
194 |         // Save the current termios to restore later
195 |         originalTerminal = terminal
196 |         terminal.c_lflag &= ~UInt(ECHO | ICANON)
    |                                          `- error: cannot find 'ICANON' in scope
197 |         tcsetattr(STDIN_FILENO, TCSANOW, &terminal)
198 |
/host/spi-builder-workspace/Sources/Picker.swift:197:9: error: cannot find 'tcsetattr' in scope
195 |         originalTerminal = terminal
196 |         terminal.c_lflag &= ~UInt(ECHO | ICANON)
197 |         tcsetattr(STDIN_FILENO, TCSANOW, &terminal)
    |         `- error: cannot find 'tcsetattr' in scope
198 |
199 |         // Setup a signal handler that resets the terminal mode when
/host/spi-builder-workspace/Sources/Picker.swift:197:19: error: cannot find 'STDIN_FILENO' in scope
195 |         originalTerminal = terminal
196 |         terminal.c_lflag &= ~UInt(ECHO | ICANON)
197 |         tcsetattr(STDIN_FILENO, TCSANOW, &terminal)
    |                   `- error: cannot find 'STDIN_FILENO' in scope
198 |
199 |         // Setup a signal handler that resets the terminal mode when
/host/spi-builder-workspace/Sources/Picker.swift:197:33: error: cannot find 'TCSANOW' in scope
195 |         originalTerminal = terminal
196 |         terminal.c_lflag &= ~UInt(ECHO | ICANON)
197 |         tcsetattr(STDIN_FILENO, TCSANOW, &terminal)
    |                                 `- error: cannot find 'TCSANOW' in scope
198 |
199 |         // Setup a signal handler that resets the terminal mode when
/host/spi-builder-workspace/Sources/Picker.swift:201:9: error: function is unused
199 |         // Setup a signal handler that resets the terminal mode when
200 |         // receiving SIGINT (ctrl-c).
201 |         signal(SIGINT, handleSignal)
    |         `- error: function is unused
202 |     }
203 |
/host/spi-builder-workspace/Sources/Picker.swift:207:9: error: cannot find 'tcsetattr' in scope
205 |         // Restore the original terminal settings.
206 |         guard var originalTerminal else { return }
207 |         tcsetattr(STDIN_FILENO, TCSANOW, &originalTerminal)
    |         `- error: cannot find 'tcsetattr' in scope
208 |     }
209 |
/host/spi-builder-workspace/Sources/Picker.swift:207:19: error: cannot find 'STDIN_FILENO' in scope
205 |         // Restore the original terminal settings.
206 |         guard var originalTerminal else { return }
207 |         tcsetattr(STDIN_FILENO, TCSANOW, &originalTerminal)
    |                   `- error: cannot find 'STDIN_FILENO' in scope
208 |     }
209 |
/host/spi-builder-workspace/Sources/Picker.swift:207:33: error: cannot find 'TCSANOW' in scope
205 |         // Restore the original terminal settings.
206 |         guard var originalTerminal else { return }
207 |         tcsetattr(STDIN_FILENO, TCSANOW, &originalTerminal)
    |                                 `- error: cannot find 'TCSANOW' in scope
208 |     }
209 |
/host/spi-builder-workspace/Sources/Picker.swift:224:13: error: cannot find 'read' in scope
222 |
223 |         while key != endCharacter.asciiValue {
224 |             read(STDIN_FILENO, &key, 1)
    |             `- error: cannot find 'read' in scope
225 |             response.append(Character(UnicodeScalar(key)))
226 |         }
/host/spi-builder-workspace/Sources/Picker.swift:224:18: error: cannot find 'STDIN_FILENO' in scope
222 |
223 |         while key != endCharacter.asciiValue {
224 |             read(STDIN_FILENO, &key, 1)
    |                  `- error: cannot find 'STDIN_FILENO' in scope
225 |             response.append(Character(UnicodeScalar(key)))
226 |         }
/host/spi-builder-workspace/Sources/Picker.swift:212:16: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
210 |     private func readCurrentLine() -> Int? {
211 |         // Flush any pending output to ensure the terminal is up-to-date.
212 |         fflush(stdout)
    |                `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
213 |
214 |         // Request the cursor position from the terminal.
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/stdio.h:63:23: note: var declared here
 61 | #if __ANDROID_API__ >= 23
 62 | extern FILE* _Nonnull stdin __INTRODUCED_IN(23);
 63 | extern FILE* _Nonnull stdout __INTRODUCED_IN(23);
    |                       `- note: var declared here
 64 | extern FILE* _Nonnull stderr __INTRODUCED_IN(23);
 65 |
/host/spi-builder-workspace/Sources/Picker.swift:216:16: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
214 |         // Request the cursor position from the terminal.
215 |         print("\u{1B}[6n", terminator: "")
216 |         fflush(stdout)
    |                `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
217 |
218 |         // Read the response from the terminal (e.g., "\ESC[12;40R")
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/stdio.h:63:23: note: var declared here
 61 | #if __ANDROID_API__ >= 23
 62 | extern FILE* _Nonnull stdin __INTRODUCED_IN(23);
 63 | extern FILE* _Nonnull stdout __INTRODUCED_IN(23);
    |                       `- note: var declared here
 64 | extern FILE* _Nonnull stderr __INTRODUCED_IN(23);
 65 |
/host/spi-builder-workspace/Sources/Picker.swift:261:5: error: cannot find 'tcsetattr' in scope
259 | private func handleSignal(signal: Int32) {
260 |     guard var originalTerminal else { return }
261 |     tcsetattr(STDIN_FILENO, TCSANOW, &originalTerminal)
    |     `- error: cannot find 'tcsetattr' in scope
262 |     print("\u{1B}[?25h", terminator: "")
263 |     exit(signal)
/host/spi-builder-workspace/Sources/Picker.swift:261:15: error: cannot find 'STDIN_FILENO' in scope
259 | private func handleSignal(signal: Int32) {
260 |     guard var originalTerminal else { return }
261 |     tcsetattr(STDIN_FILENO, TCSANOW, &originalTerminal)
    |               `- error: cannot find 'STDIN_FILENO' in scope
262 |     print("\u{1B}[?25h", terminator: "")
263 |     exit(signal)
/host/spi-builder-workspace/Sources/Picker.swift:261:29: error: cannot find 'TCSANOW' in scope
259 | private func handleSignal(signal: Int32) {
260 |     guard var originalTerminal else { return }
261 |     tcsetattr(STDIN_FILENO, TCSANOW, &originalTerminal)
    |                             `- error: cannot find 'TCSANOW' in scope
262 |     print("\u{1B}[?25h", terminator: "")
263 |     exit(signal)
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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
Building for debugging...
[0/5] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/7] Emitting module Picker
/host/spi-builder-workspace/Sources/Picker.swift:257:31: error: cannot find type 'termios' in scope
255 | }
256 |
257 | private var originalTerminal: termios?
    |                               `- error: cannot find type 'termios' in scope
258 |
259 | private func handleSignal(signal: Int32) {
[3/7] Compiling Picker Picker.swift
/host/spi-builder-workspace/Sources/Picker.swift:257:31: error: cannot find type 'termios' in scope
255 | }
256 |
257 | private var originalTerminal: termios?
    |                               `- error: cannot find type 'termios' in scope
258 |
259 | private func handleSignal(signal: Int32) {
/host/spi-builder-workspace/Sources/Picker.swift:163:22: error: cannot find 'read' in scope
161 |     private func readControlCharacter() -> ControlCharacter? {
162 |         var key: UInt8 = 0
163 |         let result = read(STDIN_FILENO, &key, 1)
    |                      `- error: cannot find 'read' in scope
164 |         guard result == 1 else { return nil }
165 |
/host/spi-builder-workspace/Sources/Picker.swift:163:27: error: cannot find 'STDIN_FILENO' in scope
161 |     private func readControlCharacter() -> ControlCharacter? {
162 |         var key: UInt8 = 0
163 |         let result = read(STDIN_FILENO, &key, 1)
    |                           `- error: cannot find 'STDIN_FILENO' in scope
164 |         guard result == 1 else { return nil }
165 |
/host/spi-builder-workspace/Sources/Picker.swift:192:24: error: cannot find 'termios' in scope
190 |     private func enableNonCanonicalMode() {
191 |         // Switch standard input to non-canonical mode to read the response immediately.
192 |         var terminal = termios()
    |                        `- error: cannot find 'termios' in scope
193 |         tcgetattr(STDIN_FILENO, &terminal)
194 |         // Save the current termios to restore later
/host/spi-builder-workspace/Sources/Picker.swift:193:9: error: cannot find 'tcgetattr' in scope
191 |         // Switch standard input to non-canonical mode to read the response immediately.
192 |         var terminal = termios()
193 |         tcgetattr(STDIN_FILENO, &terminal)
    |         `- error: cannot find 'tcgetattr' in scope
194 |         // Save the current termios to restore later
195 |         originalTerminal = terminal
/host/spi-builder-workspace/Sources/Picker.swift:193:19: error: cannot find 'STDIN_FILENO' in scope
191 |         // Switch standard input to non-canonical mode to read the response immediately.
192 |         var terminal = termios()
193 |         tcgetattr(STDIN_FILENO, &terminal)
    |                   `- error: cannot find 'STDIN_FILENO' in scope
194 |         // Save the current termios to restore later
195 |         originalTerminal = terminal
/host/spi-builder-workspace/Sources/Picker.swift:196:35: error: cannot find 'ECHO' in scope
194 |         // Save the current termios to restore later
195 |         originalTerminal = terminal
196 |         terminal.c_lflag &= ~UInt(ECHO | ICANON)
    |                                   `- error: cannot find 'ECHO' in scope
197 |         tcsetattr(STDIN_FILENO, TCSANOW, &terminal)
198 |
/host/spi-builder-workspace/Sources/Picker.swift:196:42: error: cannot find 'ICANON' in scope
194 |         // Save the current termios to restore later
195 |         originalTerminal = terminal
196 |         terminal.c_lflag &= ~UInt(ECHO | ICANON)
    |                                          `- error: cannot find 'ICANON' in scope
197 |         tcsetattr(STDIN_FILENO, TCSANOW, &terminal)
198 |
/host/spi-builder-workspace/Sources/Picker.swift:197:9: error: cannot find 'tcsetattr' in scope
195 |         originalTerminal = terminal
196 |         terminal.c_lflag &= ~UInt(ECHO | ICANON)
197 |         tcsetattr(STDIN_FILENO, TCSANOW, &terminal)
    |         `- error: cannot find 'tcsetattr' in scope
198 |
199 |         // Setup a signal handler that resets the terminal mode when
/host/spi-builder-workspace/Sources/Picker.swift:197:19: error: cannot find 'STDIN_FILENO' in scope
195 |         originalTerminal = terminal
196 |         terminal.c_lflag &= ~UInt(ECHO | ICANON)
197 |         tcsetattr(STDIN_FILENO, TCSANOW, &terminal)
    |                   `- error: cannot find 'STDIN_FILENO' in scope
198 |
199 |         // Setup a signal handler that resets the terminal mode when
/host/spi-builder-workspace/Sources/Picker.swift:197:33: error: cannot find 'TCSANOW' in scope
195 |         originalTerminal = terminal
196 |         terminal.c_lflag &= ~UInt(ECHO | ICANON)
197 |         tcsetattr(STDIN_FILENO, TCSANOW, &terminal)
    |                                 `- error: cannot find 'TCSANOW' in scope
198 |
199 |         // Setup a signal handler that resets the terminal mode when
/host/spi-builder-workspace/Sources/Picker.swift:207:9: error: cannot find 'tcsetattr' in scope
205 |         // Restore the original terminal settings.
206 |         guard var originalTerminal else { return }
207 |         tcsetattr(STDIN_FILENO, TCSANOW, &originalTerminal)
    |         `- error: cannot find 'tcsetattr' in scope
208 |     }
209 |
/host/spi-builder-workspace/Sources/Picker.swift:207:19: error: cannot find 'STDIN_FILENO' in scope
205 |         // Restore the original terminal settings.
206 |         guard var originalTerminal else { return }
207 |         tcsetattr(STDIN_FILENO, TCSANOW, &originalTerminal)
    |                   `- error: cannot find 'STDIN_FILENO' in scope
208 |     }
209 |
/host/spi-builder-workspace/Sources/Picker.swift:207:33: error: cannot find 'TCSANOW' in scope
205 |         // Restore the original terminal settings.
206 |         guard var originalTerminal else { return }
207 |         tcsetattr(STDIN_FILENO, TCSANOW, &originalTerminal)
    |                                 `- error: cannot find 'TCSANOW' in scope
208 |     }
209 |
/host/spi-builder-workspace/Sources/Picker.swift:224:13: error: cannot find 'read' in scope
222 |
223 |         while key != endCharacter.asciiValue {
224 |             read(STDIN_FILENO, &key, 1)
    |             `- error: cannot find 'read' in scope
225 |             response.append(Character(UnicodeScalar(key)))
226 |         }
/host/spi-builder-workspace/Sources/Picker.swift:224:18: error: cannot find 'STDIN_FILENO' in scope
222 |
223 |         while key != endCharacter.asciiValue {
224 |             read(STDIN_FILENO, &key, 1)
    |                  `- error: cannot find 'STDIN_FILENO' in scope
225 |             response.append(Character(UnicodeScalar(key)))
226 |         }
/host/spi-builder-workspace/Sources/Picker.swift:261:5: error: cannot find 'tcsetattr' in scope
259 | private func handleSignal(signal: Int32) {
260 |     guard var originalTerminal else { return }
261 |     tcsetattr(STDIN_FILENO, TCSANOW, &originalTerminal)
    |     `- error: cannot find 'tcsetattr' in scope
262 |     print("\u{1B}[?25h", terminator: "")
263 |     exit(signal)
/host/spi-builder-workspace/Sources/Picker.swift:261:15: error: cannot find 'STDIN_FILENO' in scope
259 | private func handleSignal(signal: Int32) {
260 |     guard var originalTerminal else { return }
261 |     tcsetattr(STDIN_FILENO, TCSANOW, &originalTerminal)
    |               `- error: cannot find 'STDIN_FILENO' in scope
262 |     print("\u{1B}[?25h", terminator: "")
263 |     exit(signal)
/host/spi-builder-workspace/Sources/Picker.swift:261:29: error: cannot find 'TCSANOW' in scope
259 | private func handleSignal(signal: Int32) {
260 |     guard var originalTerminal else { return }
261 |     tcsetattr(STDIN_FILENO, TCSANOW, &originalTerminal)
    |                             `- error: cannot find 'TCSANOW' in scope
262 |     print("\u{1B}[?25h", terminator: "")
263 |     exit(signal)
BUILD FAILURE 6.1 android