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

iOS precompiled binaries in React Native 0.84.1 ignore custom Metro ports

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

Chưa có ai nhận issue này.

Đá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
52/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
react-native
Lĩnh vực
mobile

Hướng nghiên cứu

Bắt đầu với reproducer bắt buộc tại https://github.com/Sacha1995/RN084MetroPortRepro và chạy Metro cùng ứng dụng iOS trên cổng 8082 bằng các lệnh trong issue. Sau đó, truy vết cách binary iOS được biên dịch sẵn nhận hoặc tạo URL kết nối Metro, đồng thời so sánh React Native 0.84.1 với phiên bản trước đó vẫn hoạt động. Hoàn tất khi ứng dụng kết nối tới Metro trên cổng tùy chỉnh thay vì quay về cổng mặc định.

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

Mô tả

Needs: Triage :mag: Platform: iOS
Description

React Native 0.84.1 introduces a regression where iOS builds using the precompiled binary do not respect custom Metro bundler ports.

When running Metro on a non-default port, the application is unable to connect correctly and behaves as though it is still attempting to use the default port. This prevents development workflows that require running Metro on an alternative port.

This issue appears to be specific to iOS builds using the precompiled binary and was not present in the previous React Native version tested.

Steps to reproduce
  • Clone the reproduction repository.
  • Install dependencies:
    npm install
  • Start Metro on a custom port:
    npx react-native start --port 8082
  • In another terminal, build and run the iOS application using the custom Metro port:
    npx react-native run-ios --port 8082
  • Observe that the application does not connect to Metro running on port 8082 when using the iOS precompiled binary and instead attempts to use the default Metro port.
React Native Version

0.84.1

Affected Platforms

Runtime - iOS

Output of npx @react-native-community/cli info
System:
  OS: macOS 26.5.1
  CPU: (14) arm64 Apple M4 Pro
  Shell:
    version: "5.9"
    path: /bin/zsh

Binaries:
  Node:
    version: 22.11.0
  npm:
    version: 10.9.0
  Watchman:
    version: 2025.10.27.00

Managers:
  CocoaPods:
    version: 1.16.2

SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 25.0
      - iOS 26.0
      - macOS 26.0
      - tvOS 26.0
      - visionOS 26.0
      - watchOS 26.0

IDEs:
  Xcode:
    version: 26.0.1/17A400
    path: /usr/bin/xcodebuild

Languages:
  Java:
    version: 17.0.17
  Ruby:
    version: 3.2.2

npmPackages:
  "@react-native-community/cli":
    installed: 20.1.3
    wanted: 20.1.3
  react:
    installed: 19.2.3
    wanted: 19.2.3
  react-native:
    installed: 0.84.1
    wanted: 0.84.1

iOS:
  hermesEnabled: true
  newArchEnabled: true
Stacktrace or Logs
No stack trace is generated. The application launches, but it is unable to connect to the Metro bundler when using a non-default port.

The simulator says: 
No script URL provided. Make sure the packager is running or you have embedded a JS bundle in your application bundle.
MANDATORY Reproducer

https://github.com/Sacha1995/RN084MetroPortRepro

Screenshots and Videos

No response

Ngôn ngữ chính
C++
Star
127k
Fork
25.3k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

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/react-native

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

Issue tương tự

Thêm issue về C++

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.