繁体   English   中英

Apple LLVM 5.1错误

[英]Apple LLVM 5.1 error

当我尝试在Xcode版本5.1.1上打开旧项目时,proprecompiler给出以下错误

clang: error: unknown argument: '-fobjc' [-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

顺便提一下,某些类是使用-fobjc -arc标志编译的。

您知道如何解决此问题吗?

看起来您使用的是错误的标志。 您应该使用-fobjc-arc

再次检查编译器标志,似乎您正在使用-fobjc而不是-fobjc-arc
采用

  • 启用ARC-> -fobjc-arc
  • 禁用ARC-> -fno-objc-arc

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM