Appium ios17+ 手机重启后无法启动 wda

sunshine2176 · February 18, 2025 · Last by sunshine2176 replied at March 18, 2025 · 4398 hits

背景
appium 自身是支持 ios17+ 的,但是 appium 原生的驱动方案 iPhone 只能在 mac 设备上使用。

但是现实场景中,mac 设备太贵,只有有限的几台,无法满足全部 iPhone 都连在 mac 设备上,所以需要让 iPhone 能够连在其他系统上的方案。

目前情况

根据网上各路大神的文章,在 ios17 前,可以通过 tidevice 实现以上目的,但是在 ios17+ 开始,tidevice 已经无法支持 wda 的启动。

目前的方案改成了 go-ios 启动 wda, 但是目前遇到一个问题,就是手机重启之后就无法启动 wda,暂时没有查到原因,目前还没有解决

共收到 4 条回复 时间 点赞

用 go-ios 给手机重新挂载一下镜像,ios --udid 设备 image auto

+1,就是需要重新挂载镜像,并且有时需要重新装 wda 包

sunshine2176 回复

想咨询下 怎么配置呢

testerxm 回复

用 go-ios 启动 wda 的命令就行,比如 ios --udid=xxxxxxx runwda --bundleid=xxxxx --testrunnerbundleid=xxxxx --xctestconfig=xxxxxx

需要 Sign In 后方可回复, 如果你还没有账号请点击这里 Sign Up