所以我有几个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 ...