简体   繁体   English

Apple LLVM Compiler 4.2错误:没有这样的文件或目录

[英]Apple LLVM Compiler 4.2 Error : NO such file or directory

I get a error from the Xcode as below: 我从Xcode收到如下错误:

clang: error: no such file or directory: '/Users/Ashok/Desktop/projectdir/AScommon/View Support/GradientView.m' 铛:错误:没有这样的文件或目录: '/ 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. 最主要的是上面显示的文件/目录路径在我的mac中不存在。

Have tried with the following: 尝试了以下方法:

I even set the paths in the Build setting search paths. 我什至在Build设置搜索路径中设置路径。

I have tried all the methods of cleaning the project, reopening of the xcode, clearing the derived data. 我尝试了所有清理项目,重新打开xcode,清除派生数据的方法。

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. 有时会发生这样的情况。可能GradientView.m存在于您的目标位置,只需检查它是否在您的项目中可用并且其颜色不应为红色。 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. 如果为红色,则选择该文件并删除该文件。然后通过右键单击您的项目>将文件添加到“您的项目”>再次添加GradientView.m文件来再次添加它。 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. 请根据以上步骤检查GradientView.m是否存在。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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