run-ios on Xcode 27: DeviceHub opens no window when the simulator is shut down
Les mainteneurs répondent en général sous 2 jours
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 25/100
- Type d'issue
- Bug
- Clarté
- Clairement spécifiée
- Activité
- À l'abandon
- Stack technique
- ios, react-native, typescript
- Domaine
- cli, mobile-dev
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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.
- Langage dominant
- TypeScript
- Étoiles
- 2.9k
- Forks
- 948
- Merge moyen
- 10 j 19 h
- PR mergées (30 j)
- 1
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de react-native-community/cli
-
run-ios --udid <physical device> throws "No simulator available" because the fallback simulator is resolved eagerlyPeut-être pris @huytdps13400 l’a pris il y a 43 jours. Ouvertebug report
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
react-native-community/cli#2826 ·
Les mainteneurs répondent en général sous 2 jours
-
`project.ios.automaticPodsInstallation` default of `true` never applies unless `project.ios` is explicitly declared in `react-native.config.js`Peut-être pris @huytdps13400 l’a pris il y a 43 jours. Ouvertebug report
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
react-native-community/cli#2825 ·
Les mainteneurs répondent en général sous 2 jours
-
run-ios: "Unable to boot device in current state: Booted" alert when the simulator is already bootedPeut-être pris @bryandent l’a pris il y a 86 jours. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
react-native-community/cli#2820 ·
Les mainteneurs répondent en général sous 2 jours
-
run-ios --buildFolder installs the app from the default DerivedData instead of the build folderPeut-être pris @lovisschmidt l’a pris il y a 3 jours. Ouverte
Difficulté 3/5 1-2 jours Accessibilité débutants 55/100
react-native-community/cli#2869 ·
Les mainteneurs répondent en général sous 2 jours
-
Tons of errors are ignoredOuverte
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
react-native-community/cli#2852 ·
Les mainteneurs répondent en général sous 2 jours
Toutes les issues de react-native-community/cli
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 85/100
farbenmeer/tapi#531 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
naver/egjs-flicking#971 ·
-
Renderer treats a sub-pixel width difference as a resize, which cancels the `motion()` entranceOuverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 85/100
Les mainteneurs répondent en général sous 1 jour
-
Tenant
Difficulté 2/5 1-3 heures Accessibilité débutants 66/100
MTES-MCT/Dossier-Facile-Frontend#2061 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 85/100
backnotprop/plannotator#1784 ·
Les mainteneurs répondent en général sous 1 jour