How to disable ARC for a single file in Xcode 5?

12,464

Solution 1

Well, I just tried and found that you must had dragged the window to a smaller width. You need to drag it back to show the Compiler Flag column:

Solution 2

To fix the real issue rather than a GUI issue, select the file and press ENTER, then you can add the -fno-objc-arc compiler flag.

Solution 3

You appear to be missing the right-hand column. On my install it looks like this:

enter image description here

Notice the 'Compiler Flags' column to the right of the 'Name' column.

Double-clicking anywhere on the row allows me to type into the flags as long as that column is on screen. Making my window sufficiently thin causes it to be invisible so the first thing I'd try is making your window super-wide, to see whether you can get a flags column.

Share:
12,464
Undo
Author by

Undo

Stack Overflow moderator. I bite, but only when sufficiently provoked. Everything I post on Stack Overflow is licensed to you under CC0: you can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission. Feel free to just throw it into your project without attribution. That's what most folks do anyway... but for my contributions, it's nice and legal.

Updated on June 27, 2022

Comments

  • Undo
    Undo almost 2 years

    I recently downloaded Xcode 5, and it's now my primary IDE. However, I now need to disable Automatic Reference Counting for a single file in my project.

    In Xcode 4, I went to the Build Phases tab under my target, and I could double click the on the right side of a row in the Compile Sources section, add -fno-objc-arc to the list of compiler flags, and be off.

    In 5, however, the column seems to be unclickable:

    enter image description here

    So, how do I do this?