本文介绍了方案未配置为测试操作(iOS xcode项目)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为我的iOS应用程式执行Xcode单元测试。我愿意在通过USB连接到Mac机的iPad上进行。我试图从命令行运行测试,以便从Jenkins触发它。
下面是我当前正在输入命令行和我得到的错误。请帮助。

I am trying to run an Xcode unit test for my iOS application. I am willing to do it on an iPad connected via USB to a mac machine. I am trying to run the test from the command line in order to trigger it from Jenkins later on.Below is what I'm currently typing into the command line and the error I'm getting. Please help.

代码:

xcodebuild test -scheme MyApplication -destination "platform=iOS,name=iPad"

错误:


推荐答案

对我来说,问题是没有测试添加到我的方案:

For me the problem was that no tests were added to my scheme:

通过'+'按钮向我的方案添加测试包,然后可以通过Xcode和xcodebuild构建该方案。

By adding test bundles to my scheme via the '+' button then the scheme could be built by Xcode and xcodebuild.

这篇关于方案未配置为测试操作(iOS xcode项目)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-10 03:31