我们想为自动化启动 IOS 应用程序,但仅在模拟器中出现以下错误。对于 Android,appium 运行良好。
Xcode 版本:12.5 MacOS - M1 芯片组 11.0.1(大苏尔) Appium 版本:1.22.0-beta.0 模拟器版本- 14.5
<块引用>[WebDriverAgent] xcodebuild 以代码“65”和信号“null”退出 [WebDriverAgent] xcodebuild 以代码“65”和信号“null”退出 [WebDriverAgent] xcodebuild 以代码“65”和信号“null”退出 [WebDriverAgent] xcodebuild 以代码“65”和信号“null”退出 [XCUITest] {} ----- 启动驱动程序异常 ------ org.openqa.selenium.SessionNotCreatedException:无法创建新的远程会话。请检查服务器日志以获取更多详细信息。 原始错误:处理时发生未知的服务器端错误 命令。原始错误:无法启动 WebDriverAgent 因为 xcodebuild 失败:xcodebuild 失败,代码为 65 xcodebuild 错误消息:
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
System info: host: '197NODMB27871.local', ip: '2405:201:5002:7087:bd47:b227:2c88:f122%en0', os.name: 'Mac OS X',
os.arch: 'x86_64', os.version: '10.16', java.version: '1.8.0_282' 驱动信息:driver.version:IOSDriver 远程堆栈跟踪:UnknownError:处理命令时发生未知的服务器端错误。原始错误:无法 由于 xcodebuild 失败启动 WebDriverAgent:xcodebuild failed 代码 65 xcodebuild 错误消息:
at getResponseForW3CError (/opt/homebrew/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:804:9)
at asyncHandler (/opt/homebrew/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/protocol.js:380:37)
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
System info: host: '197NODMB27871.local', ip: '2405:201:5002:7087:bd47:b227:2c88:f122%en0', os.name: 'Mac OS X',
os.arch: 'x86_64', os.version: '10.16', java.version: '1.8.0_282' 驱动信息:driver.version:IOSDriver 在 io.appium.java_client.remote.AppiumCommandExecutor$1.createSession(AppiumCommandExecutor.java:208) 在 io.appium.java_client.remote.AppiumCommandExecutor.createSession(AppiumCommandExecutor.java:217) 在 io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:239) 在 org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552) 在 io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:41) 在 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:213) 在 io.appium.java_client.AppiumDriver.startSession(AppiumDriver.java:336) 在 org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:131) 在 io.appium.java_client.DefaultGenericMobileDriver.(DefaultGenericMobileDriver.java:37) 在 io.appium.java_client.AppiumDriver.(AppiumDriver.java:88) 在 io.appium.java_client.AppiumDriver.(AppiumDriver.java:98) 在 io.appium.java_client.ios.IOSDriver.(IOSDriver.java:90) 在 com.one97.paytm.appautomation.ios.GenericFunctionsIOS.startDriver(GenericFunctionsIOS.java:116) 在 com.one97.paytm.appautomation.runnable.StartDriverRunnable.startDriverAndPutInPool_IOS(StartDriverRunnable.java:136) 在 com.one97.paytm.appautomation.runnable.StartDriverRunnable.startDriverAndPutInPool(StartDriverRunnable.java:92) 在 com.one97.paytm.appautomation.runnable.StartDriverRunnable.run(StartDriverRunnable.java:74) 在 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 在 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 在 java.lang.Thread.run(Thread.java:748) 引起:java.lang.reflect.InvocationTargetException 在 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 在 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 在 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 在 java.lang.reflect.Method.invoke(Method.java:498) 在 io.appium.java_client.remote.AppiumCommandExecutor$1.createSession(AppiumCommandExecutor.java:186) ……还有 20 个 引起:org.openqa.selenium.WebDriverException:处理命令时发生未知的服务器端错误。原来的 错误:由于 xcodebuild 失败,无法启动 WebDriverAgent: xcodebuild 失败,代码为 65 xcodebuild 错误消息:
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
System info: host: '197NODMB27871.local', ip: '2405:201:5002:7087:bd47:b227:2c88:f122%en0', os.name: 'Mac OS X',
os.arch: 'x86_64', os.version: '10.16', java.version: '1.8.0_282' 驱动信息:driver.version:IOSDriver 远程堆栈跟踪:UnknownError:处理命令时发生未知的服务器端错误。原始错误:无法 由于 xcodebuild 失败启动 WebDriverAgent:xcodebuild failed 代码 65 xcodebuild 错误消息:
at getResponseForW3CError (/opt/homebrew/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:804:9)
at asyncHandler (/opt/homebrew/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/protocol.js:380:37)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
DeviceName = Automation-Simulator-1, DeviceID = 7EF63B02-3CE5-4C38-85CB-017A60A43568, DeviceVersion = 14.5
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.openqa.selenium.remote.W3CHandshakeResponse.lambda$errorHandler$0(W3CHandshakeResponse.java:62)
at org.openqa.selenium.remote.HandshakeResponse.lambda$getResponseFunction$0(HandshakeResponse.java:30)
at org.openqa.selenium.remote.ProtocolHandshake.lambda$createSession$0(ProtocolHandshake.java:126)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.Spliterators$ArraySpliterator.tryAdvance(Spliterators.java:958)
at java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:126)
at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:499)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:486)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
at java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:152)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:531)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:128)
... 25 more
Process finished with exit code 0