【发布时间】:2014-06-20 15:57:33
【问题描述】:
当我尝试在 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 标志
-
使用 -fno-objc-arc 禁用或使用 -fobjc-arc 启用标志