Boon
Boon

Reputation: 41500

Xcode 5 Product -> Test is grayed out

My Xcode 5 Product -> Test is grayed out but I can still run my unit tests directly by clicking play from the Test Navigator.

Any idea what's causing Product -> Test to gray out?

enter image description here

Upvotes: 40

Views: 9588

Answers (2)

spfursich
spfursich

Reputation: 5405

For me, the issue was that my scheme didn't have the test project listed. Go to Product->Scheme->Edit Scheme then choose Test on the left, and add the tests to this scheme.enter image description here

Upvotes: 114

matt
matt

Reputation: 535306

It's because the Scheme is incorrectly configured (for the Test action). Set the test target and check those checkboxes.

Upvotes: 35

Related Questions