在Xcode 5.1上编译错误

时间:2014-04-16 22:25:18

标签: xcode compiler-construction

我最近在Xcode上编译时遇到了一个独特的错误。有问题的应用程序是我从github获得的一个名为sios的应用程序。错误是:

clang: error: unknown argument: '-mstructure-size-boundary=32' [-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: '-falign-loops' [-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: '-falign-labels' [-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: '-falign-jumps' [-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: '-fpeel-loops' [-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

如何解决这个问题?

2 个答案:

答案 0 :(得分:0)

您必须与开发该代码的人交谈。那些是未知的构建参数,Xcode 5.1包含一个拒绝它们的新版本的clang(而不是让它们被忽视,这就是之前发生的事情)。

或者,使用Xcode 5.0进行编译。 (请参阅我的讨论here,了解Xcode 5.0和5.1如何能够并存。)

答案 1 :(得分:0)

删除"未知" clang中引发的错误中列出的参数,来自xcode中构建设置下的SNES_CFLAGS。它会成功编译然后;-)