我得到“clang:错误:没有输入文件” [英] I'm getting "clang: error: no input files"
问题描述
我有一个文件,我删除并替换为另一个文件,其他地方,同名。
I had a file which I deleted and replaced with another file, somewhere else, of the same name.
尽管清洁,尝试这个多次,发生此错误:
Despite cleaning, and trying this multiple times, I keep getting this error:
clang:错误:没有这样的文件或目录:'/ Users / Andrew / App / Version 1.1 / XCode / UIImage + Alpha.m'
clang:error:no input files
clang: error: no such file or directory: '/Users/Andrew/App/Version 1.1/XCode/UIImage+Alpha.m' clang: error: no input files
我无法继续使用我的应用程式它。任何想法?
I can't continue working on my app because of it. Any ideas?
推荐答案
问题可能是因为你的项目> target> Build Phases> Compile Sources试图编译一个文件不存在。它可能在那里两次,如下面的屏幕截图。我的项目包含UIImage + FFXtras,我甚至可以删除它,重新添加它,这不会解决问题!
The problem might be because your project > target > Build Phases > Compile Sources is trying to compile a file that doesn't exist. It might be in there twice, like the below screen shot. My project contains UIImage+FFXtras, I can even remove it and re-add it and this won't resolve the problem!
我不知道项目是如何进入这个状态的 - 但我知道这不是很明显是什么问题。突出显示红色问题,并删除它。
I'm not sure how the project gets into this state - but I know it's not obvious what is going wrong. Highlight the red problem one and remove it.
所以看看在编译源阶段文件clang抱怨。
So have a look in compile sources phase for the file clang is complaining about.
这篇关于我得到“clang:错误:没有输入文件”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!