无法打开文件“WebDriverAgentRunner-Runner.app”,因为没有这样的文件
The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file
我已经使用终端在 Mac 上安装了 Appium 1.6.4。我还可以在 MAC.
中使用 Safari 浏览器检查 iPhone WebElements
但我需要在 iPhone 真实设备上检查键盘元素和日期选择器元素。为此,我重新安装了 Appium-desktop 1.0.2 beta2 版本。当我启动 Appium 桌面(GUI)和 运行 selenium 代码时。它抛出以下错误。
XCUITest] Log file for xcodebuild test: /Users/msubramaniam/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Logs/Test/D3F3B94A-A324-4996-B60F-0732CEBFB00D/Session-WebDriverAgentRunner-2017-05-30_125049-1uf7KZ.log
[Xcode] 2017-05-30 12:50:49.364 xcodebuild[87735:236610] Error Domain=NSCocoaErrorDomain Code=260 "The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/Users/msubramaniam/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app, NSUnderlyingError=0x7fb4306026c0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
[Xcode] 2017-05-30 12:50:49.364 xcodebuild[87735:236610] Error Domain=IDETestOperationsObserverErrorDomain Code=6 "Early unexpected exit, operation never finished bootstrapping - no restart will be attempted" UserInfo={NSLocalizedDescription=Early unexpected exit, operation never finished bootstrapping - no restart will be attempted}
[Xcode]
[Xcode] ** TEST EXECUTE FAILED **
[Xcode]
[Xcode]
[XCUITest] xcodebuild exited with code '65' and signal 'null'
[BaseDriver] Event 'wdaStartFailed' logged at 1496128849419 (12:50:49 GMT+0530 (IST))
[XCUITest] Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65
[XCUITest] Quitting and uninstalling WebDriverAgent, then retrying
[XCUITest] Shutting down sub-processes
[XCUITest] Shutting down iproxy process (pid 87701)
[XCUITest] iproxy exited with code 'null'
[XCUITest] Removing WDA application from device
[BaseDriver] Event 'wdaStartAttempted' logged at 1496128859998 (12:50:59 GMT+0530 (IST))
根据上面的日志,我已经导航到以下位置,
/Users/msubramaniam/Library/Developer/Xcode/DerivedData
我发现有两个WebDriverAgents
WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy
WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs
它正在调用第二个 WebDriverAgent,它没有 "WebDriverAgentRunner-Runner.app"。
第一个 WebDriverAgent 有 "WebDriverAgentRunner-Runner.app"。
那么如何调用第一个WebDriverAgent
我还尝试使用以下命令删除 WebDriverAgent。
rm -rf /WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs
但是没有删除
请提供解决方案以解决此问题。
carthage 有问题。 运行 下面的命令已解决:
rm '/usr/local/bin/carthage'
brew install carthage
brew link carthage
我已经使用终端在 Mac 上安装了 Appium 1.6.4。我还可以在 MAC.
中使用 Safari 浏览器检查 iPhone WebElements但我需要在 iPhone 真实设备上检查键盘元素和日期选择器元素。为此,我重新安装了 Appium-desktop 1.0.2 beta2 版本。当我启动 Appium 桌面(GUI)和 运行 selenium 代码时。它抛出以下错误。
XCUITest] Log file for xcodebuild test: /Users/msubramaniam/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Logs/Test/D3F3B94A-A324-4996-B60F-0732CEBFB00D/Session-WebDriverAgentRunner-2017-05-30_125049-1uf7KZ.log
[Xcode] 2017-05-30 12:50:49.364 xcodebuild[87735:236610] Error Domain=NSCocoaErrorDomain Code=260 "The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/Users/msubramaniam/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app, NSUnderlyingError=0x7fb4306026c0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
[Xcode] 2017-05-30 12:50:49.364 xcodebuild[87735:236610] Error Domain=IDETestOperationsObserverErrorDomain Code=6 "Early unexpected exit, operation never finished bootstrapping - no restart will be attempted" UserInfo={NSLocalizedDescription=Early unexpected exit, operation never finished bootstrapping - no restart will be attempted}
[Xcode]
[Xcode] ** TEST EXECUTE FAILED **
[Xcode]
[Xcode]
[XCUITest] xcodebuild exited with code '65' and signal 'null'
[BaseDriver] Event 'wdaStartFailed' logged at 1496128849419 (12:50:49 GMT+0530 (IST))
[XCUITest] Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65
[XCUITest] Quitting and uninstalling WebDriverAgent, then retrying
[XCUITest] Shutting down sub-processes
[XCUITest] Shutting down iproxy process (pid 87701)
[XCUITest] iproxy exited with code 'null'
[XCUITest] Removing WDA application from device
[BaseDriver] Event 'wdaStartAttempted' logged at 1496128859998 (12:50:59 GMT+0530 (IST))
根据上面的日志,我已经导航到以下位置,
/Users/msubramaniam/Library/Developer/Xcode/DerivedData
我发现有两个WebDriverAgents
WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy
WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs
它正在调用第二个 WebDriverAgent,它没有 "WebDriverAgentRunner-Runner.app"。
第一个 WebDriverAgent 有 "WebDriverAgentRunner-Runner.app"。
那么如何调用第一个WebDriverAgent
我还尝试使用以下命令删除 WebDriverAgent。
rm -rf /WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs
但是没有删除
请提供解决方案以解决此问题。
carthage 有问题。 运行 下面的命令已解决:
rm '/usr/local/bin/carthage'
brew install carthage
brew link carthage