xcodebuild在teamcity构建代理上失败:当前未针对测试操作配置方案 [英] xcodebuild failing on teamcity build agent: scheme is not currently configured for the test action

查看:195
本文介绍了xcodebuild在teamcity构建代理上失败:当前未针对测试操作配置方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在XCode内部和Mac上的命令行中,测试都可以正常运行.在TeamCity构建代理(在Mac mini上的VMWare中运行)中,当在XCOde中运行时,测试也会通过.但是在命令行中,我收到消息当前未针对测试操作配置方案___".我知道运行XCode可能会使命令行构建混乱,因此我将其关闭.还有什么可能是错的?

The tests run fine both inside XCode and at the command line on my Mac. Inside the TeamCity build agent (running in VMWare on a Mac mini), the test also pass when run inside XCOde. But at the command line, I get the message "scheme ___ is not currently configured for the test action". I know that having XCode running can mess up the command line build, so I have it closed. What else could be wrong?

推荐答案

问题是未共享该方案.此处的更多信息: xcodebuild表示不包含方案. (忽略以下声明:只有在构建工作空间时才能解决问题.我正在构建项目,但是将方案设为Shared,然后检入Xcode创建的文件即可解决此问题.

The problem was that the scheme was not shared. More information here: xcodebuild says does not contain scheme. (Ignore the statement that this will only solve the problem if you are building a workspace. I was building a project, but making the scheme Shared and then checking in the file that Xcode created fixed the problem.

这篇关于xcodebuild在teamcity构建代理上失败:当前未针对测试操作配置方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆