【问题标题】:Change OS X deployment target from 10.6 to 10.5 clang error将 OS X 部署目标从 10.6 更改为 10.5 clang 错误
【发布时间】:2012-12-08 16:22:52
【问题描述】:

我正在尝试更改我的 OS X 项目部署目标,但我不断收到此错误并且我的构建失败。

clang: error: -fobjc-arc is not supported on current deployment target
Command/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1

我不知道这意味着什么或我必须做什么。

【问题讨论】:

    标签: xcode macos cocoa deployment clang


    【解决方案1】:

    这意味着您需要禁用 ARC 才能支持 MacOS 10.5。 The oldest version of MacOS that works with ARC is 10.6.

    对于开发人员来说,关闭 ARC 可能非常困难,尤其是取决于您项目的规模,因为这意味着您必须进行一系列全新的“retain”和“release”调用用于潜在的大量对象。

    【讨论】:

    • 我们不能更改以前版本的基本目标和部署目标吗?
    • 从“-fobjc-arc is not supported on current deployment target”的错误来看,编译器看到开发者试图将最低部署版本设置为10.5,并反对,因为那里不支持ARC。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-06-24
    • 1970-01-01
    • 2016-03-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多