Klevison
Klevison

Reputation: 3484

xcodebuild test for especific Target/Scheme

I'm facing with this error:

command: xcodebuild test -scheme Exclusive -destination "platform=iOS"

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

My scenario: 3 targets, 3 schemas. One target for each theme. So I need to run UI test for each target.

What I'm doing wrong?

enter image description here enter image description here

EDIT: enter image description here

Upvotes: 1

Views: 2504

Answers (1)

Joe Masilotti
Joe Masilotti

Reputation: 17018

It sounds like the Exclusive scheme doesn't include a test target. You can add/remove them by double-clicking on the scheme name in the Manage Schemes window.

Then click the + in the bottom to add your testing target(s).

enter image description here

Upvotes: 3

Related Questions