How to remove tests and uitest groups from Xcode project?

I included the Tests and UITests schemas when I created my Xcode project, but now I want to remove them. Even if I delete those groups, I still get build errors on the files and the files still show in the editor. How do I remove those files from my project for good?

Answered by iTen in 266478022

Remove the tagrets.

Accepted Answer

Remove the tagrets.

Thanks. That worked.

Click your project name in the Project Navigator. Then select your Tests target. Click the minus (-) button at the bottom to delete it. (Select everywhere in red in the image below.)

https://stackoverflow.com/a/32009990/3826175

User AppleDevX below answered this question...

Just adding a some steps to navigate through Xcode interface for anyone not adept in the Xcode GUI. -Go to the Project Navigator panel which is the left most panel in Xcode. (Note: The Panels in Xcode do not have their names displayed on the UI. e.g. Project Navigator.) -Select the folder icon at the top of the panel. -Then select the name of your current project within the Project Navigator panel. -Once selected, you should see a panel to the right of the project navigator panel called the Document Navigator which contains a section called "Project" and "Targets." -In the "Targets" section you should see the Test Targets for the current project. You can either right click the test and delete or select the target then select the minus symbol ( - ) at the bottom of the Document Navigator pane.

Hope this helps.

How to remove tests and uitest groups from Xcode project?
 
 
Q