Xcode Bots服务器持续集成失败

时间:2014-01-01 16:22:26

标签: ios objective-c swift xcode osx-server

尝试使用Xcode机器人进行单元测试时,我遇到了这个错误:

Integration failed. Unexpected error while building. See the integration's logs for more details.

我无法理解日志。无论相关与否,他们都会向系统吐出任何错误。

我使用来自Github的远程存储库,目前只在一台设备上进行测试。我是。来自Xcode的标准内容。

以下是我能找到的日志中最相关的消息:

'2014-01-01 10:03:04.195 xcodebuild[19150:100b] Error opening /var/teamsserver/Library/Logs/iOS Simulator/iOS Simulator.log'

Symbols directory specified does not exist at /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/DTDeviceKitBase.framework/Resources/sync_ddi line 17.

xcodebuild: error: No destinations were specified with the -destination flag which were valid for the specified scheme 'MyTestsScheme'.

最后报道的是第三个。似乎也是最直接相关的。有什么想法吗?

4 个答案:

答案 0 :(得分:7)

我发现问题是由于我的Scheme配置为仅测试而引起的。我通过转到Edit Scheme,选择“Run”,然后将Executable从'none'切换到我的.app文件来解决问题。

答案 1 :(得分:1)

看到此错误的另一个可能原因是您正在"所有设备"上运行测试。但是您没有插入兼容的设备进行测试(例如iOS 7.1设备或iPad)。

答案 2 :(得分:0)

-destination标志似乎对应于特定设备

尝试在方案中设置一些自定义xcodebuild参数,例如:

test -destination OS=7.0.4,name=iPhone

同样从我过去读到的内容中,似乎有很多人提到将该方案纳入git repo ...如果你在谷歌上有一个侦察员,你会看到有一小撮关于网络的这些帖子。

答案 3 :(得分:0)

我遇到同样的问题。 但是你的解决方案对我不起作用。 我通过检查“并行化构建”来解决这个问题。选项' Build'架构的项目。