I have a project that contains some files that are using ARC, and some are not. The ones that are not have the compiler flag that disables ARC. That works fine.
I also want to make sure my library compiles for LLVM-GCC and also LLVM Compiler.
I have a property like this:
@property (strong, nonatomic) NSString *foo;
However, when I compile in LLVM-GCC, I get:
“Expected a property attribute before ‘strong'”
If I change strong to retain, it compiles fine.
Strong also works fine in LLVM Compiler.
What am I missing? Isn’t strong synonymous with retain?
You’re using an obsolete compiler and expecting it to support new language features. That simply isn’t going to happen. If you’re using keywords introduced with ARC, you need to be using Clang.