xctest-client.js:173:14 [master] pid:28993 please check project: /usr/local/lib/node_modules/macaca-ios/node_modules/xctestwd/XCTestWD/XCTestWD.xcodeproj
xctest-client.js:172:14 [master] pid:28993 2017-07-21 16:54:41.423 xcodebuild[29083:519891] Error Domain=IDETestOperationsObserverErrorDomain Code=4 "Test operation was canceled. If you believe this error represents a bug, please attach the log file at /Users/zuohongxia/Library/Developer/Xcode/DerivedData/XCTestWD-csksfttfbygcrbamoobfasiylmgb/Logs/Test/EF25D6D3-3776-4F23-A25B-C6D6537C4D99/Session-XCTestWDUITests-2017-07-21_165441-qNozaC.log" UserInfo={NSLocalizedDescription=Test operation was canceled. If you believe this error represents a bug, please attach the log file at /Users/zuohongxia/Library/Developer/Xcode/DerivedData/XCTestWD-csksfttfbygcrbamoobfasiylmgb/Logs/Test/EF25D6D3-3776-4F23-A25B-C6D6537C4D99/Session-XCTestWDUITests-2017-07-21_165441-qNozaC.log}

xctest-client.js:173:14 [master] pid:28993 please check project: /usr/local/lib/node_modules/macaca-ios/node_modules/xctestwd/XCTestWD/XCTestWD.xcodeproj
xctest-client.js:172:14 [master] pid:28993 2017-07-21 16:54:41.425 xcodebuild[29083:519935] Connection peer refused channel request for "dtxproxy:XCTestManager_IDEInterface:XCTestManager_DaemonConnectionInterface"; channel canceled

xctest-client.js:173:14 [master] pid:28993 please check project: /usr/local/lib/node_modules/macaca-ios/node_modules/xctestwd/XCTestWD/XCTestWD.xcodeproj
xctest-client.js:172:14 [master] pid:28993
Testing failed:
Command /bin/sh failed with exit code 127
** TEST FAILED **

The following build commands failed:
PhaseScriptExecution Run\ Script /Users/zuohongxia/Library/Developer/Xcode/DerivedData/XCTestWD-csksfttfbygcrbamoobfasiylmgb/Build/Intermediates/XCTestWD.build/Debug-iphonesimulator/XCTestWDUITests.build/Script-7FA43F311F0CB57400FB2332.sh
(1 failure)

xctest-client.js:173:14 [master] pid:28993 please check project: /usr/local/lib/node_modules/macaca-ios/node_modules/xctestwd/XCTestWD/XCTestWD.xcodeproj
xctest-client.js:255:14 [master] pid:28993 killing deviceLogProc pid: 29084
xctest-client.js:260:14 [master] pid:28993 killing runnerProc pid: 29083
xctest-client.js:183:14 [master] pid:28993 xctest client exit with code: 65, signal: null
xctest-client.js:108:18 [master] pid:28993 simulator log process exit with code: null, signal: SIGKILL


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