xcode - iOS 6.0 Apple LLVM 编译器 4.1 错误

标签 xcode ios6 llvm

将 Xcode 更新到最新版本,现在当我尝试编译现有项目时出现奇怪的编译器错误。我认为这是一些需要更改但无法确定位置的build设置。

Apple LLVM Compiler 4.1 error
clang: error: the clang compiler does not support '-fobjc-abi-version=0'
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1

这是什么意思?

最佳答案

来自 clang manpage :

-fobjc-abi-version=version
           Select the Objective-C ABI version to use. Available versions are 1
           (legacy "fragile" ABI), 2 (non-fragile ABI 1), and 3 (non-fragile
           ABI 2).

从这里 stackoverflow answer :

The non-fragile ABI refers to the ability to add instance variables to a class without requiring recompilation of all subclasses.

I.e. in v1 (there really aren't true versions of ObjC), if Apple were to add an instance variable to, say, NSView (on Cocoa, 32 bit), then every subclass of NSView (or subclass of subclass) would have to be recompiled or they would blow up. v2 and v3 fix this.



所以在我看来,您想删除该选项并重新编译所有内容。

关于xcode - iOS 6.0 Apple LLVM 编译器 4.1 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12888752/

相关文章:

swift - 调整 NSImage 的大小会改变其原点并产生错误的结果

ios - 在第二次 UITextField 编辑时显示和隐藏键盘

ios - 子类化 iOS 控件 - 代码与 Storyboard

c++11 - 从 LLVM 调用 Win32/64 函数的正确方法是什么?

c++ - 如何使用 IRBuilder 更新 LLVM IR 中的全局变量值?

ios - 从 Firebase 检索所有子值并显示在文本字段/ TextView 上

xcode - Xcode 项目的 Git 忽略文件

ios6 - Cocoapods:无法找到要集成的 Xcode 项目

ios - iOS 6 Beta 3 (ipad 3) 中的 UIAlertView 似乎没有触发委托(delegate)中的代码

c++ - 如何将参数传递给我在 LLVM 传递中使用 CallInst::Create(...) 调用的外部函数?