ARC错误:易碎abi不支持-fobjc-arc [英] ARC error : -fobjc-arc is not supported with fragile abi

查看:113
本文介绍了ARC错误:易碎abi不支持-fobjc-arc的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:
Objective-C ARC错误:-fobjc脆弱的abi不支持-arc

Possible Duplicate:
Objective-C ARC Error: -fobjc-arc is not supported with fragile abi

Clang LLVM 1.0错误 错误:易碎abi不支持-fobjc-arc

Clang LLVM 1.0 Error error: -fobjc-arc is not supported with fragile abi

我正在构建OSX应用程序,当我使用配置文件"进行编译以与Instruments一起使用时,出现相同的错误.知道如何解决吗?

I'm buildin an OSX app and I get the same error when I compile it with "Profile", to work with Instruments. Any idea how to solve it?

推荐答案

ARC仅适用于OS X中的64位应用程序.因此,必须在构建设置中将应用程序的体系结构设置为"64位Intel".如果要支持32位OS X系统,则不能使用ARC.

ARC is only available to 64-bit applications in OS X. Therefore, you must set your application's architecture to "64-bit Intel" in the build settings. If you want to support 32-bit OS X systems then you cannot use ARC.

脆弱的ABI"指的是旧的旧版" Objective-C运行时,这是32位OS X应用程序所使用的. iOS和64位OS X应用程序使用现代" Objective-C运行时.

"Fragile ABI" refers to the old "Legacy" Objective-C runtime, which is what 32-bit OS X applications use. iOS and 64-bit OS X apps use the "Modern" Objective-C runtime.

这篇关于ARC错误:易碎abi不支持-fobjc-arc的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆