16

On XCode 8 Beta 5 & 6 cannot use the comment out functionality. Seems it is disabled in the context menu and shortcut does not work.

I have submitted this to Apple via bugreport.apple.com and got a response that it has already been reported. I am on Mac OS 10.11.6

Does anyone know how to fix this?

Vlad
  • 5,727
  • 3
  • 38
  • 59

5 Answers5

41

From: https://twitter.com/kolpanic/status/763323546814844928

In Terminal: sudo /usr/libexec/xpccachectl

Reboot.

junjie
  • 7,946
  • 2
  • 26
  • 26
7

I had this issue with the Xcode 8 GM version. I just moved Xcode 8 into another directory and opened it again. Then it works.

MacMark
  • 6,239
  • 2
  • 36
  • 41
  • The terminal command no helps for me, but this is works! I simply quit the Xcode, rename Xcode's app name, and reopen it, then everything works fine. Awesome, thanks a lot! – Jonny Oct 01 '16 at 07:15
1

You aren't, by some chance, commenting out the second line of a multi-line macro, are you? If so, I already filed a bug about it, and it was broken in Xcode 7, too.

Otherwise, the way you fix it is to

  • File a bug report at bugreport.apple.com
  • Roll back to a previous version (or just ignore it and manually comment out the lines)
dgatwood
  • 10,129
  • 1
  • 28
  • 49
  • I am commenting uncommented lines (or at least trying). Seems it is problem with XCode. I will try raise a bug. Thanks – Vlad Aug 16 '16 at 18:29
1

Xcode 8 might not be fully supported by el captain, i couldn't make comment on el captain but now i can make comment when i updated my os to developer beta 7.

ak2g
  • 1,673
  • 15
  • 22
0

XCode 8 GM is out for download which fixes issue: https://developer.apple.com/download/

Vlad
  • 5,727
  • 3
  • 38
  • 59
  • 3
    I am using the full release of XCode 8, and this issue still persists. The accepted answer does solve the problem, but Apple hasn't fixed it. – bindsniper001 Sep 22 '16 at 23:27