Xcode在OSX 10.9上安装 - clang:error:没有输入文件 [英] Xcode install on OSX 10.9 - clang: error: no input files
问题描述
我正在将OS X 10.9 Mavericks安装XCode Command Line Tools的过程
我安装成功XCode:
$ xcode-select -p
/ Library / Developer / CommandLineTools
但是,当我输入 $ clang
或 $ gcc
clang:error:no input files
如果你只是键入命令没有任何输入文件,那么作为注释,编译器报告一个准确的错误消息。
但是如果你有一个现有的项目,那么你可以看到同样的 clang:error:no input files
>
- 在制作完成后移动文件夹/文件项目
- 您的某个文件无法被XCode项目识别
- 您的项目预编译头设置错误(错误的前缀):
在Xcode中
Build settings
检查前缀标题
的值。
在我看来,你设置为MySecondTabbApp / MySecondTabbApp-Prefix.pch
,它应该只是MySecondTabbApp-Prefix.pch
错误是我通过步骤来配置ruby,并被指向另一个页面上的指令,刚刚声明检查
$ gcc
而不是$ gcc --version
。
显然是新的编码,试图了解更多。
I'm in the process of installing XCode Command Line Tools onto OSX 10.9 Mavericks
I did a successful install XCode:
$ xcode-select -p
/Library/Developer/CommandLineTools
However when I type in either $ clang
or $ gcc
it returns:
clang: error: no input files
If you just type the command without any input files, then as commented, the compiler reports an accurate error message.
But if you have an existing project, then you can see that same "clang: error: no input files
" message when:
- you move your folder/files after making the project
- one of your files isn't recognized by the XCode project
- your project pre-compile header settings is wrong (wrong prefix):
In Xcode "
Build settings
" reviews the value for "Prefix header
".
It seems to me that you have it set to "MySecondTabbApp/MySecondTabbApp-Prefix.pch
" and it should be just "MySecondTabbApp-Prefix.pch
"
The OP user2925321 comments:
The error was that I was running through steps to configure ruby and was directed to instructions on another page that just stated to check for
$ gcc
instead of$ gcc --version
.
Obviously new to coding, trying to learn more.
这篇关于Xcode在OSX 10.9上安装 - clang:error:没有输入文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!