Use non-ARC files into an ARC project
Some time we need to use some old non-ARC files/libraries into our ARC projects on iOS. We can do this in 2 ways:
1.- the first obvious way is just refactor the code to accomplish the ARC rules
2.- the easier way is de following:
- Select your project target
- Go to "Build Phases"
- Select "Compile Sources"
- On each file you want to avoid using ARC add the compiler
flag: -fno-objc-arc
Written by Alejandro Narancio
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Arc
Authors
wilhelmbot
2.04K
anarancio
1.097K
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#