gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-01 05:27:56 24 4
gpt4 key购买 nike

将 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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com