Srivathsava K
Srivathsava K

Reputation: 447

Apple LLVM Compiler 4.2 Error : NO such file or directory

I get a error from the Xcode as below:

clang: error: no such file or directory: '/Users/Ashok/Desktop/projectdir/AScommon/View Support/GradientView.m'

clang: error: no input files Command

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1

The main thing is that file/directory path shown above doesnot exists in my mac.

Have tried with the following:

I even set the paths in the Build setting search paths.

I have tried all the methods of cleaning the project, reopening of the xcode, clearing the derived data.

Can anybody please guide me the solutions, so the app will built without errors.

Thanks in advance.

Upvotes: 1

Views: 3376

Answers (2)

iSmita
iSmita

Reputation: 1292

Sometimes it happens like this.May GradientView.m exists in your target location, just check whether it is available in your project and its color should not be red. If it is red then select that file and delete that file.And again add it by Right click on your project > Add files to "Your project" > add again GradientView.m file. Then Product > clean and built > run.

Upvotes: 5

Darth-L
Darth-L

Reputation: 1

The problem might be because your project > target > Build Phases > Compile Sources is trying to compile a file that doesn't exist. Please check if GradientView.m exists according to above step.

Upvotes: 0

Related Questions