I have an iOS refactoring library that I want to work with and without the ARC compilation option. Is there a way to detect during compilation, like with an #ifdef, if ARC is available?
I have an iOS refactoring library that I want to work with and without
Share
Yes, you can use the following:
Even if you’re using the latest version of LLVM, this will only evaluate to true if you’re compiling with the
-fobjc-arcoption.