Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

xcodes runtimes install returns immediately with 'Finished' when run without TTY (SSH non-interactive)

Aperta
#455 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
macos, swift
Ambito
cli

Direzione di ricerca

Inizia riproducendo xcodes runtimes install "iOS 18.1" tramite SSH senza una TTY, quindi traccia il percorso del comando runtimes install nel repository. Confronta il suo comportamento con l’allocazione forzata di una TTY e considera completato il lavoro se il download termina senza una TTY oppure viene restituito un errore chiaro diverso da zero invece di Finished con codice di uscita 0.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Description

When running xcodes runtimes install via SSH without a TTY (e.g., through Ansible or ssh user@host 'command'), the command returns immediately with "Finished" output and exit code 0, even though the runtime download has not started or completed.

Steps to Reproduce

  1. SSH into a macOS host without allocating a TTY:

    ssh user@host '/opt/homebrew/bin/xcodes runtimes install "iOS 18.1"'
    
  2. Observe that the command returns immediately with:

    Finished
    
  3. Verify that no runtime was actually installed:

    xcrun simctl list runtimes
    

    Shows no iOS 18.1 runtime.

Expected Behavior

The command should block and download the runtime, showing progress, even when run without a TTY. Or, if TTY is required, it should fail with a clear error message rather than silently claiming success.

Actual Behavior

  • Returns immediately (< 2 seconds)
  • Outputs "Finished"
  • Exit code: 0
  • No runtime is downloaded/installed

Workaround

Force TTY allocation when running via SSH:

ssh -tt user@host '/opt/homebrew/bin/xcodes runtimes install "iOS 18.1"'

Or in Ansible:

vars:
  ansible_ssh_common_args: "-o RequestTTY=force"

Environment

  • xcodes version: 1.6.2
  • macOS version: 26.1
  • Xcode version: Xcode 16.1
  • Installation method: Homebrew

Additional Context

This issue makes it difficult to automate runtime installation via configuration management tools like Ansible, which don't allocate TTYs by default. The command should either work without a TTY or fail clearly instead of silently succeeding without doing anything.

Lingua principale
Swift
Stelle
4.8k
Fork
182
Merge medio
2g 12h
PR unite (30g)
1

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di XcodesOrg/xcodes

Tutte le issue di XcodesOrg/xcodes

Issue simili

Altre issue su Swift

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.