Is it possible to have an iOS application that does not support ARC, but with some arc files?

Is it possible to have an iOS application that does not support ARC, but with some arc files?

I have an application that does not support ARC, where I would like to add some files with ARC support. Is it possible?

thanks

+7
source share
2 answers

You can use the -fobjc-arc flag to enable ARC for specific files.

+11
source

Using the -fobjc-arc flag to enable ARC for specific files can result in a 'unrecognized command line option for -f-objc-arc that occurs due to an incorrect compiler.

To fix this, go to Target Settings > Build Settings > Build Options and change the compiler from LLVM GCC to Apple LLVM . Build and run, and the problem must be resolved.

-one
source

All Articles