codeskyblue / tidevice3

wrapper for pymobiledevice3 to make it more easy to use.
MIT License
176 stars 33 forks source link

window下使用t3 tunneld失败 已解决 #25

Open hcx1002 opened 3 months ago

hcx1002 commented 3 months ago

window下启动使用t3 tunneld 启动隧道 失败 报错:INFO: Started server process [1748] INFO: Waiting for application startup. INFO: Application startup complete. INFO: Uvicorn running on http://0.0.0.0:5555 (Press CTRL+C to quit) return fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "d:\work\vscode\autoscrippt\Apple\.venv\Lib\site-packages\tidevice3\cli\tunneld.py", line 69, in start_tunnel process = subprocess.Popen( ^^^^^^^^^^^^^^^^^ File "C:\Users\Yardi\AppData\Local\Programs\Python\Python311\Lib\subprocess.py", line 1026, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "C:\Users\Yardi\AppData\Local\Programs\Python\Python311\Lib\subprocess.py", line 1538, in _execute_child hp, ht, pid, tid = _winapi.CreateProcess(executable, args, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [WinError 2] 系统找不到指定的文件。

但是通过这个命令 "pymobiledevice3 remote tunneld" 可以启动成功 翻了一下源码 没找到什么原因 于是只能 先通过pymobiledevice3 remote tunneld启动服务

启动webDriverAgent的代码如下: service_provider = connect_remote_service_discovery_service( udid, "http://localhost:49151" ) with DvtSecureSocketProxyService(lockdown=service_provider) as dvt: process_control = ProcessControl(dvt) pid = process_control.launch( bundle_id="test.WebDriverAgentRunner" ) 通过这种方式才能在window上启动WebDriverAgent 这样就可以脱离mac了
作者有空可以看看什么问题没找到文件

dracula-dong commented 1 month ago

Although I can start tunneld, when I run t3 runwda, it still reports that the tunneld construction was not successful and it cannot connect to my device