Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 373
Boon Avatar asked May 28 '14 01:05

Boon


2 Answers

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

like image 72
spfursich Avatar answered Nov 16 '22 18:11

spfursich


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

like image 40
matt Avatar answered Nov 16 '22 20:11

matt