基于python3的环境准备——
1、安装iTunes,我本机是V12.11.0.26 ,一定要装!!
2、Appium 客户端 V1.20.0
3、安装tidevice V0.4.14
4、iOS 设备 iPhone7p(13.6)真机,已安装了wda(需要用mac安装或者打包成ipa安装)
安装tidevice
pip3 install -U tidevice
tidevice -v能正常查看版本号即为安装成功
获取设备udid
tidevice list
显示设备已安装app的bundleId
tidevice applist
使用tidevice启动wda
tidevice -u 设备udid wdaproxy -B wda的bundleid --port 8100
如图所示 即为启动成功
打开链接http://127.0.0.1:8100/status显示如下图所示,即为映射正常
appium启动配置:
{
"platformName": "ios",
"deviceName": "iPhone",
"platformVersion": "13.6",
"bundleId": "目标app的bundleid",
"udid": "iphone的udid",
"webDriverAgentUrl": "http://localhost:8100",
"noReset": true,
"usePrebuiltWDA": false,
"useXctestrunFile": false,
"skipLogCapture": true
}