Enable ARC on OLD files :
I want to bring a single Objective-C class written using ARC into an old project.
Add -fobjc-arc flag to any files for which you'd like to enable ARC, as described in the ARC documentation
If you want to enable ARC for many files, you have to:
- Open "Build phases" --> "Compile sources"
- Select files with "left_mouse" + "cmd" (for separated files) or "shift" (for grouped files - select first and last)
- Press "enter"
- Paste -fobjc-arc
- Press "Enter/Done".
Disable ARC on MULTIPLE files:
Add -fno-objc-arc flag to any files for which you'd like to disable ARC, as described in the ARC documentation
If you want to disable ARC for many files, you have to:
- Open "Build phases" --> "Compile sources"
- Select files with "left_mouse" + "cmd" (for separated files) or "shift" (for grouped files - select first and last)
- Press "enter"
- Paste -fno-objc-arc
- Press "Enter/Done".
Keep Coding :)
Thanks .....
Comments
Post a Comment