RocketSimApp icon indicating copy to clipboard operation
RocketSimApp copied to clipboard

RocketSim Connect never connects on Xcode 27 — the lldb hook never runs

Open ferrraridave-coder opened this issue 2 months ago • 2 comments

Describe the bug

RocketSim Connect never connects on Xcode 27. It sits at "Waiting for your next Xcode debug launch" indefinitely, and capturing the Xcode console during a debug launch shows no RocketSim output at all — no RocketSim Connect Version … loaded … Setting up... line. So the lldb hook is never running inside the app.

Setup

  • RocketSim 16.5.0, Xcode 27, macOS 27, iOS 27 Simulator (iPhone 18 Pro Max)
  • Both hook files installed through the Connect setup, each containing the managed block that sources rocketsim-connect-lldbinit:
    • ~/.lldbinit-Xcode
    • ~/.lldbinit-lldb-rpc-server
  • RocketSim is still maintaining both files (it rewrote them at 14:07 today), so its file access looks fine
  • The Connect setup pane shows the LLDB step ticked

To reproduce

  1. Set up Connect so both hook files are present and the LLDB step is ticked.
  2. Run an iOS Simulator app from Xcode with the debugger attached.
  3. Connect stays at "Waiting for your next Xcode debug launch", and the Xcode console contains no RocketSim output whatsoever.

Expected behaviour

The first debug launch connects, and Connect reports connected.

What I have tried

  • Full Mac reboot, then RocketSim started before Xcode, then the app launched from Xcode with the debugger attached — repeatedly
  • Every step in the docs' troubleshooting: run from Xcode with the debugger attached; Simulator target only; re-select ~/.lldbinit-Xcode in the setup screen; repair the helper script; restart the debug session
  • System Settings → Privacy & Security → Local Network: RocketSim is not listed at all, i.e. it has never requested it (and there is no manual add), so that cannot be pre-granted

Evidence

  • ~/.lldbinit-lldb-rpc-server was written at 13:44:01; Xcode's lldb-rpc-server process started at 13:46:04 — the hook file predates the server, so it should have been sourced
  • Searching the Simulator's log for RocketSim Connect across a two-hour window returns nothing (caveat: a debug-launched app's stdout goes to Xcode's console)
  • rocketsim doctor passes 6/6 (accessibility fetch via the CoreSimulator XPC fallback), so the CLI link itself is healthy
  • Issue #1138 does not apply here — the scheme has no customLLDBInitFile

Question

Is it (a) Xcode 27's lldb-rpc-server not sourcing ~/.lldbinit-lldb-rpc-server at all, or (b) it being sourced but failing on the next line, command script import lldb_internal_main_loader.py? Is there a verbose/debug switch to confirm whether the hook is sourced, and does a silent failure of that import log anywhere I can look?

Note

Everything else works — element reads, screenshots and taps are all fine. It is only Connect, so Simulator Camera and network inspection are unusable.

ferrraridave-coder avatar Oct 04 '26 13:10 ferrraridave-coder

Had the same issue, giving XCode full disk access fixed it for me.

System Settings → Privacy & Security → Full Disk Access → + → add /Applications/Xcode-27.0.0.app → quit and reopen Xcode → Run.

Kamajabu avatar Oct 07 '26 08:10 Kamajabu

This is now fixed (RocketSim 16.6.0): the Connect hook for Xcode 27 loads from the app bundle and RocketSim repairs it automatically on launch. Please update, and if you installed the hook manually, re-run the setup from Settings > Connect.

AvdLee avatar Oct 30 '26 15:10 AvdLee