run-ios on Xcode 27: DeviceHub opens no window when the simulator is shut down
Mantenedores costumam responder em até 2 dias
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/cli20.2.0;runOnSimulatoris unchanged onmain(21.0.0-alpha.1)react-native0.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
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de react-native-community/cli
-
run-ios --udid <physical device> throws "No simulator available" because the fallback simulator is resolved eagerlyTalvez já em andamento @huytdps13400 assumiu há 44 dias. Abertabug report
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
react-native-community/cli#2826 ·
Mantenedores costumam responder em até 2 dias
-
`project.ios.automaticPodsInstallation` default of `true` never applies unless `project.ios` is explicitly declared in `react-native.config.js`Talvez já em andamento @huytdps13400 assumiu há 44 dias. Abertabug report
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
react-native-community/cli#2825 ·
Mantenedores costumam responder em até 2 dias
-
run-ios: "Unable to boot device in current state: Booted" alert when the simulator is already bootedTalvez já em andamento @bryandent assumiu há 88 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
react-native-community/cli#2820 ·
Mantenedores costumam responder em até 2 dias
-
run-ios --buildFolder installs the app from the default DerivedData instead of the build folderTalvez já em andamento @lovisschmidt assumiu há 4 dias. Aberta
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 55/100
react-native-community/cli#2869 ·
Mantenedores costumam responder em até 2 dias
-
Tons of errors are ignoredTalvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Aberta
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 48/100
react-native-community/cli#2852 ·
Mantenedores costumam responder em até 2 dias
Todas as issues de react-native-community/cli
Issues semelhantes
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 85/100
MystenLabs/MemWal#1163 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
Mondriaan
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
knaw-huc/textannoviz#709 ·
Mantenedores costumam responder em até 1 dia
-
billion-context-pi
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
ranxianglei/billion-context#2521 · 3 comentários ·
Mantenedores costumam responder em até 1 dia
-
Add: YRF Music NepalAbertastreams:add
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 62/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100