Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#2,866 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

@rakodev đang làm issue này rồi.

Từ ngày 4/10/2026.

  • #2867 của @rakodev — đang mở

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
ios, react-native, typescript
Lĩnh vực
cli, mobile-dev

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
TypeScript
Star
2.9k
Fork
948
Merge trung bình
10 ngày 19 giờ
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của react-native-community/cli

Tất cả issue của react-native-community/cli

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.