【问题标题】:Xcode Server ibtool Build FailuresXcode 服务器 ibtool 构建失败
【发布时间】:2016-02-27 17:07:57
【问题描述】:

我一直在研究使用 Xcode Server for CI。我已经解决了一些问题,但现在有一个问题困扰着我。

构建似乎工作正常,但在测试阶段挂起,并在日志底部生成:

2015-11-25 14:44:45.650 xcodebuild[58280:821560]  iPhoneSimulator: D7097422-C058-44DB-A275-CE1A44B11023: Executable terminated at path: /Applications/Xcode7.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Xcode/Agents/xctest (status = 6)
Sampling process 58280 for 10 seconds with 1 millisecond of run time between samples
Sampling completed, processing symbols...
Sample analysis of process 58280 written to file /Library/Developer/XcodeServer/Integrations/Integration-269b1638e732255aefa82f1688077c72/58280.sample
sample[59879]: sample cannot find any existing process you have access to which has a name like 'Interface Builder Cocoa Touch Tool'; try running with `sudo`.
sample[59880]: sample cannot find any existing process you have access to which has a name like 'ibtool'; try running with `sudo`.
sample[59881]: sample cannot find any existing process you have access to which has a name like 'ibtoold'; try running with `sudo`.
** BUILD INTERRUPTED **

服务器正在运行 OS X 10.10.5(目前无法升级到 El Capitan)、OS X Server 5.5.15 和许多 Xcode 版本,但选择了 Xcode 7.1(这是此服务器上可用的最新版本) .

有没有人见过这个并解决了它?

链接到this questionThis question 声称有解决方案,但可惜它们没有帮助,而且设置似乎略有不同。所以是的,钥匙串已解锁并可供 Xcode Server 使用,并且服务器已重新启动。

【问题讨论】:

  • 我也有和你一样的问题,好像在测试类上运行,失败了。示例 [76351]:示例找不到您有权访问的任何现有进程,其名称类似于“Interface Builder Cocoa Touch Tool”;尝试使用sudo 运行。示例 [76353]:示例找不到您有权访问的任何现有进程,其名称类似于“ibtool”;尝试使用sudo 运行。示例 [76354]:示例找不到您有权访问的任何现有进程,其名称类似于“ibtool”;尝试使用sudo 运行。 ** 构建中断 **
  • @Jafar 那些已经在问题中链接到。他们的解决方案不适用于这里:(
  • 可能是 UI 测试用例的问题。尝试删除在项目启动期间创建的所有默认 UI 测试用例。

标签: ios xcode macos xcode-server


【解决方案1】:
  1. 清理您的构建文件夹。 (使用 shift+alt+command+k)。
  2. 清理您的项目。 (使用 shift+command+k)。

然后构建您的项目。

【讨论】:

    【解决方案2】:
    1. 尝试重置模拟器:模拟器 -> “重置内容和设置”
    2. Test target X encountered an error (Early unexpected exit, operation never finished bootstrapping - no restart will be attempted

    1. 和 2. 的组合以及服务器重启为我解决了问题。

    【讨论】:

      【解决方案3】:

      我的机器人似乎每次都遇到这个错误。尝试重启、钥匙串解锁、更换模拟器设备。

      创建一个配置与我的旧机器人完全相同的新机器人!

      【讨论】:

        猜你喜欢
        • 2016-08-03
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2014-01-26
        相关资源
        最近更新 更多