Reputation: 41500
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?
Upvotes: 40
Views: 9588
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.
Upvotes: 114
Reputation: 535306
It's because the Scheme is incorrectly configured (for the Test action). Set the test target and check those checkboxes.
Upvotes: 35