go-ios icon indicating copy to clipboard operation
go-ios copied to clipboard

Persistent ios commands like runwda, forward with agent mode enabled doesn't sync with tunnel start

Open stoktamisoglu opened this issue 11 months ago • 0 comments

Describe the bug When you enable experimental agent with ENABLE_GO_IOS_AGENT=yes it starts a kernel tunnel before the command runs for 17+ devices. The tunnel should start and stay after the command though it is a persistent command.

To Reproduce Steps to reproduce the behavior:

  1. Set environment variable ENABLE_GO_IOS_AGENT=yes
  2. Run go-ios runwda or any other command which requires a tunnel

{"level":"warning","msg":"failed to get tunnel info","time":"2025-02-09T21:53:12+01:00","udid":"XXXXXXXXXXXXXXX"} {"level":"info","msg":"no bundle ids specified, falling back to defaults","time":"2025-02-09T21:53:12+01:00"} {"bundleid":"com.facebook.WebDriverAgentRunner.xctrunner","level":"info","msg":"Running wda","testbundleid":"com.facebook.WebDriverAgentRunner.xctrunner","time":"2025-02-09T21:53:12+01:00","xctestconfig":"WebDriverAgentRunner.xctest"} {"error":"runXUITestWithBundleIdsXcode15Ctx: cannot create a tunnel connection to testmanagerd: ConnectToServiceTunnelIface: Cannot connect to com.apple.dt.testmanagerd.remote, missing tunnel address and RSD port","level":"error","msg":"Failed running WDA","time":"2025-02-09T21:53:12+01:00"}

Expected behavior ios tunnel start process should start and only after then runwda or other tunnel required commands can run.

Screenshots N/A

Desktop (please complete the following information):

  • OS: Windows, Linux, Mac
  • Browser N/A
  • Version N/A

Smartphone (please complete the following information):

  • Device: Any device with iOS 17+
  • OS: iOS 17+
  • Browser N/A
  • Version N/A

Additional context I can work on a fix later.

stoktamisoglu avatar Jan 06 '25 10:01 stoktamisoglu