11

所以我有几个 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 模拟器。

4

2 回答 2

19

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

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

非常合乎逻辑,谢谢苹果...

于 2014-03-14T10:21:16.350 回答
3

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

原来我有一部 iPhone 插入了“不信任”它所连接的 mac 的 mac mini!

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

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

于 2014-12-19T15:07:59.537 回答