ios - Jenkins - xcodebuild 连接对等方拒绝拒绝 dtxproxy :XCTestManager_IDEInterface 的 channel 请求

标签 ios xcode jenkins build xcode6

我正在尝试使用 Jenkins 运行 xcodebuild 命令来定期构建我的代码。 Jenkins 吐出的错误信息是:

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

最佳答案

在摆弄下面的项目时,我终于有了一些成功的构建。我仍然不知道根本原因。互联网似乎也没有。

  1. 将“clean build”添加到命令行选项(如上所述)
  2. 在命令之前杀死模拟器 - 在这里建议:( Instruments error: Connection peer refused channel request )

    killall "模拟器"|| echo "没有找到属于你的匹配进程"

关于ios - Jenkins - xcodebuild 连接对等方拒绝拒绝 dtxproxy :XCTestManager_IDEInterface 的 channel 请求,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31843591/

相关文章:

ios - 奇怪的 NSLog 错误。内存泄漏

java - 如何使用 jenkins 将 spring boot jar 文件部署到 EC2?

ant - SonarQube 分析需要太多时间

ios - 导航栏在第二次和后续出现时隐藏在 View Controller 上

android - npm WARN react-native-maps@0.14.0 需要 react@>=15.4.0 的对等体,但没有安装

iphone - 吞下触摸,除非触摸我当前层的子级

objective-c - UIWebView - shouldStartLoadWithRequest - NSMutableURLRequest

ios - 每个 TableViewCell 的 IBAction 不返回唯一的 NSIndexPath

swift - Stripe 连接 IOS 集成

jenkins - 如何加载 groovy 文件并执行它