First, open up your project and select the Xcode project file in your files list
Secondly, in the inner part of the Xcode window, click Build Phases
Next, you will see a collapsible tab called ‘Compile Sources’, click that to show the list of files and then find the file you wish to disable.
Lastly, once you find the file, click enter and type:
into the dialog box that appears
Click enter and then you are done. I hope you found that usefu