How to Disable ARC for files in a project? Xcode

      No Comments on 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

A pat on the back !!

Leave a Reply

Your email address will not be published. Required fields are marked *