1.进入appium桌面版的webdriver路径
cd /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent
2.用xcode打开WebDriverAgent.xcodeproj 或:执行命令:xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination 'id=84f4d08923c60efef57dd26703332088fb34f7dc' test
3.连接手机 用xcode进行编译
4.点击product-->test
5.打开appium_desktop
6.开启服务
7.点击 start Inspector Session
8.输入必要信息
{
"platformName": "iOS",
"platformVersion": "11.0",
"automationName": "XCUITest",
"deviceName": "iphone 8",
"bundleId": "com.systoon.beijinghuairoutoon",
"udid": "84f4d08923c60efef57dd26703332088fb34f7dc",
"startIWDP": true
}
9.点击 start Session
网友评论