请记住,您必须在 Windows 机器上运行的测试中指定 .app 的路径.但问题是路径必须是 mac 中 .app 的路径,而不是 Windows 机器上的路径.因此测试将在您的 Windows 机器上运行,但应用程序的安装、自动化和测试将在 mac 上完成,但您将在 Windows 机器上获得通过"或失败"更新.I am trying to run my script on iPHONE 5 which is connected to my windows machine. I am getting below error: 解决方案 It is possible to run the tests from a windows machine but not the way you are probably thinking. You will still need a mac. Here are the requirements:A mac on your network with Appium server runningHas Appium environment installed properlyHas the .app on the machineIf you have these three reqirements fulfilled and there is no firewall blocking network access to the mac then you can do it. You will have to actual tests on the windows machine but instead of specifying 127.0.0.1:8080 in the setup method as the IP address of Appium server you will replace it with this: yourmacsipaddress:8080 and this should execute the test properly.Remember that you have to specify the path of the .app in the test which is running from your windows machine. But the catch is that the path has to be the path of the .app in the mac and not on your windows machine.So the tests will run from your Windows machine but the installation of the app, the automation, and the testing will be done on the mac but you will get the "pass" or "fail" update on your Windows machine. 这篇关于Windows 上对 appium 的 iOS 支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!