14:18:25.993 xcodebuild[24225:349241] Connection peer refused channel
request for
“dtxproxy:XCTestManager_IDEInterface:XCTestManager_DaemonConnectionInterface”;
channel canceled
14:18:25 Testing
Failed:
14:18:25 Test target PROJECT_NAME encountered an error
(Invalid device state If you believe this error represents a bug,
please attach the log file at
/var/folders/hp/3m4jx3514dq4lf1l9s8hk5qh00009c/T/com.apple.dt.XCTest-status/Session-2015-08-05_14:18:22-ulOdQQ.log)
14:18:25 ** TEST Failed **
我的问题是这个错误是怎么解决的?当xcode build命令在命令行中运行时,我收到相同的错误.我正在使用Xcode 6,而我正在运行的命令是:
xcodebuild -workspace PROJECT_NAME.xcworkspace -scheme ‘Scheme Name’
-destination ‘platform=iOS Simulator,name=iPad Air,OS=8.1’ clean build test
解决方法
>将“clean build”添加到命令行选项(如上所述)
>杀死模拟器在命令之前 – 建议在这里:(Instruments error: Connection peer refused channel request)
killall“模拟器”||回覆“没有发现属于你的匹配过程”