Search code examples
xcode5compiler-flags

Unable to add compiler flag in Xcode 5


Hi i recently installed Xcode 5 but cant add compiler flags to it. I want to add compiler flag for automatic reference counting but when I go to build phases=>Compile sources=> .m file and double click on it or press enter while selecting it, the popup to enter compiler flag does not appear.

How to fix this? Thanks


Solution

  • Maybe it's a glitch, it wasn't working for me either. Then I created a new Xcode project from scratch, and in that one was working fine.

    I came back to the one that wasn't working and now it started accepting changes.

    Make also sure that the column "Complier Flags" it's not hidden to the far right.

    Edit:I don't know if it's your case but there's definitely a glitch. If you load the project settings in a narrow window (say in assistant mode) the flags column won't appear, and the popup text where you are supposed to enter the flags won't show. If I go to standard editor, then it behaves normally.