Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xslt/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 无法启动WebDriverAgent,因为xcodebuild失败退出代码127_Ios_Automation_Appium - Fatal编程技术网

Ios 无法启动WebDriverAgent,因为xcodebuild失败退出代码127

Ios 无法启动WebDriverAgent,因为xcodebuild失败退出代码127,ios,automation,appium,Ios,Automation,Appium,我在尝试运行iOS appium测试时遇到此错误。似乎我找不到太多关于退出代码127失败的信息。任何帮助都会很好。谢谢 org.openqa.selenium.WebDriverException:处理命令时发生未知的服务器端错误。原始错误:无法启动WebDriverAgent,因为xcodebuild失败:命令“/bin/bash/Applications/Appium.app/Contents/Resources/app/node_modules/Appium/node_modules/Ap

我在尝试运行iOS appium测试时遇到此错误。似乎我找不到太多关于退出代码127失败的信息。任何帮助都会很好。谢谢

org.openqa.selenium.WebDriverException:处理命令时发生未知的服务器端错误。原始错误:无法启动WebDriverAgent,因为xcodebuild失败:命令“/bin/bash/Applications/Appium.app/Contents/Resources/app/node_modules/Appium/node_modules/Appium-WebDriverAgent/Scripts/carthage-wrapper.sh bootstrap--平台iOS,tvOS”退出,代码127 构建信息:版本:“3.6.0”,修订版:“6fbf3ec767”,时间:“2017-09-27T15:28:36.4Z” 系统信息:主机:'andriidd.local',ip:'192.168.29.55',os.name:'Mac os X',os.arch:'x86_64',os.version:'10.14.4',java.version:'14.0.2' 驱动程序信息:Driver.version:IOSDriver 远程stacktrace:未知错误:处理命令时发生未知服务器端错误。原始错误:无法启动WebDriverAgent,因为xcodebuild失败:命令“/bin/bash/Applications/Appium.app/Contents/Resources/app/node_modules/Appium/node_modules/Appium-WebDriverAgent/Scripts/carthage-wrapper.sh bootstrap--平台iOS,tvOS”退出,代码127 在getResponseForW3CError(/Applications/Appium.app/Contents/Resources/app/node_modules/Appium/node_modules/Appium base driver/lib/protocol/errors.js:804:9) 异步处理程序(/Applications/Appium.app/Contents/Resources/app/node_modules/Appium/node_modules/Appium基本驱动程序/lib/protocol/protocol.js:381:37) 位于java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(本机方法) 位于java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) 位于java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) 位于java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500) 位于java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:481) 位于org.openqa.selenium.remote.W3CHandshakeResponse.lambda$new$0(W3CHandshakeResponse.java:57) 位于org.openqa.selenium.remote.W3CHandshakeResponse.lambda$getResponseFunction$2(W3CHandshakeResponse.java:104) 位于org.openqa.selenium.remote.ProtocolHandshake.lambda$createSession$0(ProtocolHandshake.java:123) 位于java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195) 位于java.base/java.util.Spliterators$ArraySpliterator.tryAdvance(Spliterators.java:958) 位于java.base/java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:127) 位于java.base/java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:502) 位于java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:488) 位于java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) 位于java.base/java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:150) 位于java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) 位于java.base/java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:543) 位于org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:126) 位于org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:73) 位于org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:138) 在io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:89) 位于org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:601) 在io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42) 在io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1) 位于io.appium.java_client.ios.IOSDriver.execute(IOSDriver.java:1) 位于org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:219) 位于org.openqa.selenium.remote.RemoteWebDriver(RemoteWebDriver.java:142) 位于io.appium.java_client.DefaultGenericMobileDriver。(DefaultGenericMobileDriver.java:38) 位于io.appium.java_client.AppiumDriver。(AppiumDriver.java:83) 位于io.appium.java_client.AppiumDriver。(AppiumDriver.java:93) 位于io.appium.java_client.ios.IOSDriver.(IOSDriver.java:78) 在AppTest.setupAppium(AppTest.java:36) 位于java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(本机方法) 位于java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 位于java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 位于java.base/java.lang.reflect.Method.invoke(Method.java:564) 位于org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124) 位于org.testng.internal.MethodInvocationHelper.invokeMethodConsideringTimeout(MethodInvocationHelper.java:59) 位于org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:458) 位于org.testng.internal.Invoker.invokeConfigulations(Invoker.java:222) 位于org.testng.internal.Invoker.invokeConfigulations(Invoker.java:142) 位于org.testng.SuiteRunner.privateRun(SuiteRunner.java:401) 运行(SuiteRunner.java:364) 位于org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52) 位于org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:84) 在org.testng.testng.runSuitesSequentially上(testng.java:1208) 位于org.testng.testng.runSuitesLocally(testng.java:1137) 位于org.testng.testng.runSuites(testng.java:1049) 位于org.testng.testng.run(testng.java:1017) 位于org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:115) 位于org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:251) 位于org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:77)


此问题可能与未使用最新的cartage版本有关,请尝试运行:

brew升级迦太基

然后直接在终端中重新运行失败的命令:

cd /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-webdriveragent/Scripts/
carthage-wrapper.sh bootstrap --platform iOS\,tvOS
您也可以将其作为参考进行检查