How to Disable ARC for files in a project? Xcode

ARC can be disabled for a single or group of files in a project. Adding -fno-objc-arc  compiler flag for the selected files in Target->Build Phases -> Compile Sources disables ARC for those files. You can do it in simple two steps

  • Go to Target – > Build Phases-> Compile Sources

    Compile Sources
    Compile Sources
  • Select File/Files for which you want to disable ARC.Press return key and paste -fno-objc-arc in resulting box.You are done.

    -fno-objc-arc
    -fno-objc-arc

NEED A JOB? NEED TO HIRE? NEED HELP?

Join group of Software Professionals

iOS DEVELOPER’S DEN