Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

regarding - Xcode error-> Clang: error: no input files

I am totally new to the Xcode and getting the error below:

clang: error: no such file or directory: '/usersd/chairman/desktop/MySecondTabApp/MySecondTabbApp/"MySecondTabbApp/MySecondTabbApp-Prefix.pch"'

Clang: error: no input files

Command/Users/chairman/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/user/bin/clang failed with exit code 1

like image 676
Dhanraj Avatar asked Oct 25 '12 05:10

Dhanraj


2 Answers

Did you move your folder/files after making the project? It's because Xcode can't find the prefix header for some reason. It can be easily fixed by relocating it.

Change the Prefix Header to where the .pch file is located in your folder.

like image 130
TheAmateurProgrammer Avatar answered Sep 17 '22 12:09

TheAmateurProgrammer


Select your project and go to Build Phases and search go through whole list under "Compile Sources". If some files are red then delete those files by pressing - button at the bottom. Also make sure these files are in the list without red color.

like image 20
Kashan Qamar Avatar answered Sep 17 '22 12:09

Kashan Qamar