doronz88 / pymobiledevice3

Pure python3 implementation for working with iDevices (iPhone, etc...).
https://discord.gg/52mZGC3JXJ
GNU General Public License v3.0
1.16k stars 162 forks source link

Unable to access DVT via device UDID #1064

Open lnguyen234 opened 3 weeks ago

lnguyen234 commented 3 weeks ago

Test environment

Describe the bug Tunnel is already started via usbmuxd by: pymobiledevice3 lockdown start-tunnel. However, I could not call any DVT functions, eg pymobiledevice3 developer dvt launch com.apple.mobilesafari --tunnel <device_udid>. The command should run fine if I replace --tunnel UDID with the --rsd string.

Expected behavior Safari app should be launched

Logs pymobiledevice3.main[85627] ERROR Unable to connect to Tunneld. You can start one using: sudo python3 -m pymobiledevice3 remote tunneld

doronz88 commented 3 weeks ago

You are confusing two completely seperate ways to use tunnels. Simplest is to execute on one shell:

sudo pymobiledevice3 remote tunneld

Then on the other, whatever command with no special options. For example:

pymobiledevice3 developer dvt launch com.apple.mobilesafari