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

 【解决方案】[XCUITest] WDA is not listening at 'http://localhost:8100/'

将如上的端口号改为8100

 

https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md

相关文章:

  • 2022-01-20
  • 2021-10-19
  • 2021-10-04
  • 2022-12-23
  • 2022-12-23
  • 2021-10-14
  • 2021-05-31
  • 2021-12-12
猜你喜欢
  • 2022-12-23
  • 2021-04-23
  • 2022-12-23
  • 2021-05-09
  • 2021-07-02
  • 2022-01-03
  • 2021-04-21
相关资源
相似解决方案