Reputation: 6614
Is it possible to have an iOS app that's not ARC enabled but with some arc files?
I have a non-ARC enabled app where I would like to bring in some ARC enabled files. Is this possible?
thanks
Upvotes: 7
Views: 2600
Reputation: 3653
Using the -fobjc-arc
flag to enable ARC
for specific files may result in an 'unrecognized command line option for -f-objc-arc
error which is because of using the wrong 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 should be solved.
Upvotes: -1