1

I'm trying to mark a couple of files as non-ARC. But for some reason, under Compile Sources in the Build Phases of my target, it won't let me edit them. Does anyone know what's going on? When I double click the column under Compiler Flags, the row that contains the filename is in turns grey.

Does anyone know what's going on?

Imirak
  • 1,323
  • 11
  • 21
  • Check this question out: [link](http://stackoverflow.com/q/9865847/335858). – Sergey Kalinichenko Jul 11 '12 at 17:06
  • Like I said, I know how to mark them as non-arc, but it won't work. I've done it before, but when I double click, it won't let me add a compiler flag... – Imirak Jul 11 '12 at 17:07
  • When I double-click, the row turns grey *and* a dialog appears where I can enter flags. Have you tried restarting Xcode or your computer? – Jesse Rusak Jul 11 '12 at 17:10
  • That is rather strange. Do you have read and write access to the project files? – Sergey Kalinichenko Jul 11 '12 at 17:10
  • 1
    Yes I do have read/write access. I just shut down and booted back, and quit/reopened Xcode. Still can't edit them. – Imirak Jul 11 '12 at 17:17
  • Do you have an extra monitor or an incorrect resolution/configuration, or anything that might cause the dialog to appear off screen? Sometime it just doesn't focus to it despite the correct actions happening. – Karoly S Jul 11 '12 at 20:22
  • Well I can see everything just fine and nothing is wider than normal. I'm using a retina macbook pro. It shouldn't have any affect though. – Imirak Jul 11 '12 at 20:28
  • possible duplicate of [Cannot set the compiler flags in Xcode 4.3.3](http://stackoverflow.com/questions/11315463/cannot-set-the-compiler-flags-in-xcode-4-3-3) – Monolo Jul 21 '12 at 08:31

1 Answers1

4

If the files are external from external libraries you have added to your project you may want to delete them from your project, re-add them and make sure you click the "add to targets" - "your app name" check box. Then try double clicking the row again in compile sources.

EDIT: (ANSWER) If you're on a retina macbook pro, this may be your issue. I solved it by going to the compiler flags, hitting enter/double clicking on the one I want to edit, and typing even though I can't see anything happening. Hitting enter will then finish editing the compiler flag for this row (or rows if you do a multi-select).

  • They were added to my targets. That box was checked. Anyway, I deleted, and added it again, and still didn't work. – Imirak Jul 12 '12 at 21:21
  • 2
    Think I found a link that may be the cause : [link](http://stackoverflow.com/questions/11315463/cannot-set-the-compiler-flags-in-xcode-4-3-3) – Maxwell Bohling Jul 13 '12 at 00:52
  • Woah, that is super weird! I guess Xcode isn't optimized just yet for the Retina Macbook Pro. Thanks for pointing this out! +1 – Imirak Jul 13 '12 at 00:56