1在终端设置端口:iproxt:8100 8200
2.建立服务WebDriverAgent
(手机和MAC都在同一个网段下,且都能连接外网)
关闭Xcode,进入WebDriverAgent 文件夹:
cd /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgentxcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination ‘id=真机的udid‘ test
3.启动appium:
{ "platformName": "iOS", "platformVersion": "10.3", "deviceName": "iphone 6", "automationName": "XCUITest", "webDriverAgentUrl": "http://localhost:8200", "app": "com.cmbchina.MPBBank", "udid": "bb7787b7ba9d57bb6f9c84273d22fe3204d1e547" }
时间: 2024-10-10 23:42:13