1.Encountered internal error running command: Error: Unable to launch WebDriverAgent because of xcodebuild failure: "xcodebuild failed with code 65". Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.
解决:
- 排查WebDriverAgent的配置问题,参考https://github.com/imurchie/appium-xcuitest-driver/blob/isaac-rs/docs/real-device-config.md#basic-manual-configuration
- 最后出现ServerURLHere->http://172.16.100.26:8100<-ServerURLHere ,查看http://localhost:8100/status,正常情况会出现如下:
{ "value" : { "state" : "success", "os" : { "name" : "iOS", "version" : "12.0" }, "ios" : { "simulatorVersion" : "12.0", "ip" : "172.16.100.26" }, "build" : { "time" : "Mar 7 2019 11:12:37" } }, "sessionId" : "24837120-55D0-4C7F-8B88-5F4EE4544AA2", "status" : 0 }
- 如果无法访问,可尝试
-
$ iproxy 8100 8100 udid waiting for connection
-
命令执行完之后,访问本地的localhost:8100,就直接转发到了手机的8100端口。
-
现在运行appium
-
成功之后会这样:
注意:确保电脑和手机在同一个局域网内,例如,手机连接的是mac的热点,或者两者连接同一个wifi