clang:错误:未知参数:' - fno-check-new'[-Wunused-command-line-argument-hard-error-in-future]

时间:2014-09-04 14:43:38

标签: c++ objective-c xcode macos xcode5.1

我使用基于C ++的库的项目在Xcode 5.0上运行良好。将Xcode从5.0更新到Xcode 5.1后,我得到了Clang错误。我已经尝试了所有解决方案,这些解决方案在不同的形式上讨

http://cloudspace.com/blog/2014/03/23/2014-03-23-cant-install-gems-after-upgrading-to-xcode-5.1-heres-the-solution/#.VAhyZ2SSxTI
https://langui.sh/2014/03/10/wunused-command-line-argument-hard-error-in-future-is-a-harsh-mistress/

但我的问题没有解决,任何人都可以帮助我。如何解决这些问题。

主要是我收到了以下错误。

clang: error: unknown argument: '-fno-check-new' [-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
clang: error: unknown argument: '-fno-reorder-blocks' [-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

0 个答案:

没有答案