简体   繁体   中英

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.

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM