xcode Objective-C ARC 错误:-fobjc-arc 不支持脆弱的 abi
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6965990/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Objective-C ARC Error: -fobjc-arc is not supported with fragile abi
提问by
I'm having a problem trying to migrate my iPhone app to the new ARC technology. When I try to convert the code, the following error shows up 29 times:
我在尝试将我的 iPhone 应用程序迁移到新的 ARC 技术时遇到问题。当我尝试转换代码时,出现了 29 次以下错误:
Apple LLVM compiler 3.0 Error
-fobjc-arc is not supported with fragile abi
What does this mean? And more importantly, how can I fix it? Thanks in advance!
这是什么意思?更重要的是,我该如何修复它?提前致谢!
采纳答案by Terry Wilcox
This is an unfortunate bug in Seed 3, where the migrator and simulator aren't working well together. To address this, just switch to a device target, then do migration.
这是 Seed 3 中的一个不幸的错误,其中迁移器和模拟器不能很好地协同工作。要解决这个问题,只需切换到设备目标,然后进行迁移。
回答by Gajendra K Chauhan
change compiler.
改变编译器。
Set the project compiler to "LLVM GCC 4.2", instead of "Apple LLVM 3.0"; ARC is only supported when you use Apple LLVM. To set the project compiler, in your Project, under "Build Settings", and then under "Build Options", there is a settings for "Compiler for Objective-C". Change that value to "LLVM GCC 4.2
将项目编译器设置为“LLVM GCC 4.2”,而不是“Apple LLVM 3.0”;仅当您使用 Apple LLVM 时才支持 ARC。要设置项目编译器,在您的项目中,在“构建设置”下,然后在“构建选项”下,有一个“Objective-C 编译器”的设置。将该值更改为“LLVM GCC 4.2

