IOS 6.0 Apple LLVM Compiler 4.1 Bug

Xcode has been updated to the latest version and now a strange compiler error occurs when trying to compile my existing project. I suppose this is some kind of assembly setup that needs to be changed but cannot decide where.

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 

What does it mean?

+4
source share
1 answer

From 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). 

From this fooobar.com/questions/925878 / ... :

Non-fragile ABI refers to the ability to add instance variables to a class that does not require recompilation of all subclasses.

those. in version 1 (in fact, these are not real versions of ObjC), if Apple has to recompile or explode each subclass of NSView (or a subclass of the subclass) to add an instance variable, say, to NSView (on Cocoa, 32 bits). v2 and v3 fix this.

Therefore, it seems to me that you want to remove this option and recompile everything.

+1
source

Source: https://habr.com/ru/post/1439725/


All Articles