【解决方案】[XCUITest] WDA is not listening at 'http://localhost:8100/'
1. 使用Xcode 编译 WebDriver 发现端口为:serverurlhere->http://手机ip:0 <-serverurlhere
2. 解决方案:
xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id =$(idevice_id -l) test
显示结果如下:
2018-01-03 15:46:37.486914 + 0800 WebDriverAgentRunner-Runner [4222:1622132] 2018-01-03 15:46:37.536376 + 0800 WebDriverAgentRunner-Runner [4222:1622132] ServerURLHere-> http://192.168.31.76:8100 <-ServerURLHere
3. 改写代码:
appium-xcuitest-driver/WebDriverAgent/WebDriverAgentLib/Routing/FBWebServer.m
将如上的端口号改为8100
https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md
日行一善, 日写一撰