Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

run-ios on Xcode 27: DeviceHub opens no window when the simulator is shut down

Aberta
#2,866 2 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 2 dias

@rakodev já está trabalhando nisso.

Desde 4/10/2026.

  • #2867 de @rakodev — aberto

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
25/100
Tipo de issue
Bug
Clareza
Claramente especificada
Status de atividade
Estagnada
Stack de tecnologia
ios, react-native, typescript
Domínio
cli, mobile-dev

Direção de pesquisa

Start with the runOnSimulator flow used by run-ios and reproduce the two open-and-boot command orders from the issue on a shut-down simulator. Compare the behavior with boot-first ordering; done means run-ios opens the target simulator window rather than leaving it headless. A linked pull request indicates that work is already underway.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

Environment

  • macOS 26.6.2 (25G83)
  • Xcode 27.0 (27A266a), iOS 27.0 simulator runtime (24A434)
  • @react-native-community/cli 20.2.0; runOnSimulator is unchanged on main (21.0.0-alpha.1)
  • react-native 0.87.1
  • Node 22.22.3

Description

When the target simulator is shut down, run-ios builds, installs and launches the app, but DeviceHub never shows the simulator's window. The simulator runs headless, and DeviceHub keeps showing whatever device window was already open, if any. When the simulator is already booted, its window opens as expected.

runOnSimulator opens devices://device/open?id=<udid> and then runs xcrun simctl boot. DeviceHub opens a window for a device that is already booted, and also for one that stays shut down, but not for a device that starts booting right after the deep link is opened. Booting first and opening the deep link afterwards shows the window.

Reproducible Demo

With a shut-down simulator that has no DeviceHub window open:

UDID=<shut-down simulator UDID>

# What run-ios does today: the simulator boots, no window opens
open "devices://device/open?id=$UDID"; xcrun simctl boot "$UDID"

xcrun simctl shutdown "$UDID"

# Boot first, then open: the window opens
xcrun simctl boot "$UDID"; open "devices://device/open?id=$UDID"

In any React Native app, npx react-native run-ios --udid <shut-down simulator UDID> launches the app on a headless simulator.

Linguagem predominante
TypeScript
Estrelas
2.9k
Forks
950
Merge médio
10d 19h
PRs com merge (30d)
1

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de react-native-community/cli

Todas as issues de react-native-community/cli

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.