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

前端之家收集整理的这篇文章主要介绍了xcode – iOS 6.0 Apple LLVM编译器4.1错误前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
Xcode更新为最新版本,现在尝试编译现有项目时出现奇怪的编译器错误.我认为这是一些需要改变的构建设置,但无法解决问题.

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相关文章