繁体   English   中英

Xcode Bot升级到Xcode 5.1后失败

[英]Xcode Bot Failing after upgrading to Xcode 5.1

所以我有几个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模拟器,则构建完成。

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

因此,要解决此问题,您必须在服务器上手动打开Xcode,然后提示您安装需要执行的多个项目。 然后转到xcode首选项>下载,您可以重新安装iOS 7.0模拟器。

非常符合逻辑,谢谢Apple ...

我在我的Xcode构建服务器上弹出了同样的错误(mac mini运行OS X Yosemite并使用Xcode 6.1.1构建)。 由于这个原因,构建失败了。

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

解决方案:将其插入,重新启动集成,成功!

你认为这样一个精心设计的系统应该更聪明地解决这个微不足道的问题......

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM