特定 Target/Scheme 的 xcodebuild 测试

xcodebuild test for especific Target/Scheme

我遇到了这个错误:

命令: xcodebuild test -scheme Exclusive -destination "platform=iOS"

结果: xcodebuild: error: Scheme Exclusive is not currently configured for the test action.

我的场景:3 个目标,3 个模式。每个主题一个目标。所以我需要 运行 UI 测试每个目标。

我做错了什么?

编辑:

听起来 Exclusive 方案不包含测试目标。您可以通过双击“管理方案”中的方案名称来 add/remove 它们 window。

然后单击底部的 + 添加您的测试目标。