我是虚拟机运行的 appium 例子,报以下错误,多次重装 libimobiledevi 和 ideviceinstaller 也无济于事。

[XCUITest] xcodebuild exited with code '65' and signal 'null'
[debug] [XCUITest] Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65
[debug] [XCUITest] Quitting and uninstalling WebDriverAgent, then retrying
[XCUITest] Shutting down sub-processes
[debug] [XCUITest] Removing WDA application from device
[XCUITest] Using WDA path: '/usr/local/lib/node_modules/appium/node_modules/.2.9.0@appium-xcuitest-driver/WebDriverAgent'
[XCUITest] Using WDA agent: '/usr/local/lib/node_modules/appium/node_modules/.2.9.0@appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj'
[XCUITest] Launching WebDriverAgent on the device
[debug] [XCUITest] Carthage found: '/usr/local/bin/carthage'
[debug] [XCUITest] Killing hanging processes
[debug] [XCUITest] Beginning test with command 'xcodebuild build-for-testing test-without-building -project /usr/local/lib/node_modules/appium/node_modules/.2.9.0@appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=A431516F-F443-4526-ABBD-7C620F0609DF -configuration Debug' in directory '/usr/local/lib/node_modules/appium/node_modules/.2.9.0@appium-xcuitest-driver/WebDriverAgent'
[debug] [XCUITest] Waiting up to 60000ms for WebDriverAgent to start
[debug] [XCUITest] Log file for xcodebuild test: /Users/wenxuanshin/Library/Developer/Xcode/DerivedData/WebDriverAgent-atmcauubtrczumbsbbrkgsmgewed/Logs/Test/156B81B9-25D3-49AC-8E14-F945E5ED10B7/Session-WebDriverAgentRunner-2017-02-24_123235-H3Hai7.log
[Xcode] 2017-02-24 12:32:35.641 xcodebuild[67311:4243301] Error Domain=IDEFoundationErrorDomain Code=1 "Cannot launch simulated executable: no file found at /Users/wenxuanshin/Library/Developer/Xcode/DerivedData/WebDriverAgent-atmcauubtrczumbsbbrkgsmgewed/Build/Products/Debug-iphonesimulator/WebDriverAgentRunner-Runner.app" UserInfo={NSLocalizedDescription=Cannot launch simulated executable: no file found at /Users/wenxuanshin/Library/Developer/Xcode/DerivedData/WebDriverAgent-atmcauubtrczumbsbbrkgsmgewed/Build/Products/Debug-iphonesimulator/WebDriverAgentRunner-Runner.app}

[Xcode] 2017-02-24 12:32:35.641 xcodebuild[67311:4243301] Error Domain=IDETestOperationsObserverErrorDomain Code=5 "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}
2017-02-24 12:32:35.642 xcodebuild[67311:4243317] Connection peer refused channel request for "dtxproxy:XCTestManager_IDEInterface:XCTestManager_DaemonConnectionInterface"; channel canceled <DTXChannel: 0x7fd302d14ea0>

[Xcode] ** TEST EXECUTE FAILED **

Ps.顺便求解答 Mac 系统下用 Homebrew 安装的 python 怎么安装 HTMLTestRunner 的。。。


↙↙↙阅读原文可查看相关链接,并与作者交流