Ios7 奇怪的/usr/bin/clang失败,退出代码1错误-未知参数'-墙';

Ios7 奇怪的/usr/bin/clang失败,退出代码1错误-未知参数'-墙';,ios7,xcode5,clang,osx-mavericks,Ios7,Xcode5,Clang,Osx Mavericks,我四处搜索,发现有很多帖子都有关于叮当声的不同论点,但我没有看到一篇与“墙”相关的帖子 下面是完整的堆栈: clang: error: unknown argument: '-wall' [-Wunused-command-line-argument-hard-error-in-future] clang: note: this will be a hard error (cannot be downgraded to a warning) in the future Command /App

我四处搜索,发现有很多帖子都有关于叮当声的不同论点,但我没有看到一篇与“墙”相关的帖子 下面是完整的堆栈:

clang: error: unknown argument: '-wall' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future

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

** BUILD FAILED **

The following build commands failed:
ProcessPCH /var/folders/bt/x7t6pymn3vs_mykqfrpwhwgdgbmz8t/C/com.apple.DeveloperTools/5.1-5B130a/Xcode/5.1-5B130a/Xcode/SharedPrecompiledHeaders/MyAppName-Prefix-axoyogsqgxeawmhjfylnspfdgfkm/MyAppName-Prefix.pch.pch MyAppName/MyAppName-Prefix.pch normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
我正在运行最新的Xcode版本5.1(5B130a)
我最近没有对代码库进行任何更改,但我相信Xcode是在几天前更新的。我在其他项目中没有遇到过这种情况。

我认为这是一个输入错误的gcc参数。您可能想要
-Weverything
。参见

似乎是Xcode 5.1提供的新版本clang的问题,我的临时解决方案是降级到Xcode 5.0.2

我不认为键入错误,正如您提供的链接中提到的“-Wall”:如果clang包含它,那么您需要使用大写的
W
,而不是小写的
W