Skip to content

Hermes experimental debugger does not open on iOS with custom build configurations #43185

@sliptype

Description

@sliptype

Description

I have an iOS build configuration Staging.Debug that is a copy of Debug. The experimental debugger fails to launch when running this build configuration via:

react-native start --experimental-debugger

and

react-native run-ios --mode Staging.Debug

Output from metro:

info Launching JS debugger (experimental)...
warn No compatible apps connected. JavaScript debugging can only be used with the Hermes engine.

I've confirmed that the app is using Hermes:
image

The debugger launches properly when doing:

react-native run-ios --mode Debug

I did a little digging and see there is a check for the Debug configuration here and here, but I'm not sure if relevant.

Staging.Debug was created by copying Debug following these instructions. I would like to debug Staging.Debug because I need certain configuration for my staging app.

Steps to reproduce

  1. git clone [email protected]:sliptype/RNRepro1.git
  2. yarn i && pod install --project-directory=ios
  3. yarn start
  4. In another shell yarn ios
  5. Launch debug menu with CMD + D or Device > Shake
  6. Press Open Debugger

React Native Version

0.73.4

Affected Platforms

Runtime - iOS, Build - MacOS

Output of npx react-native info

System:
  OS: macOS 14.3.1
  CPU: (10) arm64 Apple M1 Max
  Memory: 142.52 MB / 32.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 18.17.0
    path: ~/.nvm/versions/node/v18.17.0/bin/node
  Yarn:
    version: 1.22.21
    path: ~/.nvm/versions/node/v18.17.0/bin/yarn
  npm:
    version: 9.6.7
    path: ~/.nvm/versions/node/v18.17.0/bin/npm
  Watchman:
    version: 2024.01.22.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.15.2
    path: /Users/sebastian/.rbenv/shims/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.2
      - iOS 17.2
      - macOS 14.2
      - tvOS 17.2
      - visionOS 1.0
      - watchOS 10.2
  Android SDK: Not Found
IDEs:
  Android Studio: 2021.3 AI-213.7172.25.2113.9014738
  Xcode:
    version: 15.2/15C500b
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.10
    path: /usr/bin/javac
  Ruby:
    version: 2.7.6
    path: /Users/sebastian/.rbenv/shims/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.73.4
    wanted: 0.73.4
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: true
  newArchEnabled: false

Stacktrace or Logs

info Launching JS debugger (experimental)...
warn No compatible apps connected. JavaScript debugging can only be used with the Hermes engine.

Reproducer

https://github.com/sliptype/RNRepro1

Screenshots and Videos

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions