【问题标题】:Xcode Bot Failing after upgrading to Xcode 5.1升级到 Xcode 5.1 后 Xcode Bot 失败
【发布时间】:2014-03-14 09:56:46
【问题描述】:

所以我有几个 Xcode 机器人设置并每晚运行,它们已经成功构建了几个星期,但是我不知道 Xcode 服务器自动安装了 Xcode 5.1 更新,现在我收到以下日志错误xcode 构建控制台...

2014-03-14 03:02:16.022 xcodebuild[37984:100b] [MT] DVTDeviceSearch: Searching for device with type 'iOS Simulator', options: {
OS = "7.0";
name = "iPhone Retina (4-inch)";
}, genericOnly: NO allowMultiple:NO timeout:0.000000
2014-03-14 03:03:16.148 xcodebuild[37984:100b] [MT] DVTDeviceSearch: No devices located: Error Domain=DVTDeviceErrorDomain Code=6 "The requested device could not be found because no available devices matched the request." UserInfo=0x7ff0e5f481b0 {NSLocalizedDescription=The requested device could not be found because no available devices matched the request.}.
xcodebuild: error: Was unable to find a destination matching the arguments to the -destination flag:
The requested device could not be found because no available devices matched the request.

模拟器似乎仍在尝试访问无法找到的 iOS 7.0 模拟器。测试设置设置为使用服务器上可用的“所有模拟器”。

有什么想法吗?

更新 1 - 这些项目在我的本地开发机器上运行 Xcode 5.1 和 iOS 7.1 SDK 构建良好。

更新 2 - 如果我手动选择仅构建完成的 iOS 7.1 模拟器。

【问题讨论】:

    标签: ios xcode continuous-integration xcode-bots


    【解决方案1】:

    事实证明,在自动将 Xcode 更新到 5.1 时,它会卸载 iOS 7.0 模拟器并将其替换为 iOS 7.1 模拟器。它不会考虑更新 Xcode 服务器上的构建设置。

    所以要解决这个问题,你必须在你的服务器上手动打开 Xcode,然后它会提示你安装几个你需要做的项目。然后进入 xcode 首选项 > 下载,你可以重新安装 iOS 7.0 模拟器。

    非常合乎逻辑,感谢 Apple...

    【讨论】:

    • 我们在设备上也遇到过这种情况。这可能是因为它还没有完成复制符号文件 - 也可能是手机没有激活(你需要用 sim 卡激活它)。
    【解决方案2】:

    我的 Xcode 构建服务器(运行 OS X Yosemite 并使用 Xcode 6.1.1 构建的 mac mini)上弹出了相同的错误。构建因此而失败。

    事实证明,我将 iPhone 插入“不信任”它所连接的 mac 的 mac mini!

    解决方案:拔掉电源,重新启动集成,成功!

    你会认为这样一个复杂的系统应该更聪明地处理像这样的琐碎问题......

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-03-18
      • 1970-01-01
      • 1970-01-01
      • 2019-01-21
      • 1970-01-01
      • 2018-05-25
      • 2014-07-06
      相关资源
      最近更新 更多