UITests Disabled in XCode
Asked Answered
C

1

7

My UITests are suddenly greyed out in XCode's test pane. (See image below.) As a result, they don't run when I choose Product -> Test. Only the Unit Tests Run (which are not greyed out.)

Despite them being greyed out, I can ctrl-click on each line item in the UITests and run it successfully.

Any idea what configuration is causing this to be greyed out? How can I reverse it?

enter image description here

Carr answered 5/1, 2017 at 1:3 Comment(0)
C
23

Somehow the UITest target got removed from the scheme for the main target. To fix this, select the main target, then go to Product -> Scheme -> Edit Scheme. Then in the dialog below, choose the Test pane, and add the UITest target by hitting the + button at the bottom of the panel.

enter image description here

Carr answered 5/1, 2017 at 1:14 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.