XCode 8 Comment out broken

7.4k views Asked by At

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?

5

There are 5 answers

10
junjie On BEST ANSWER

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

In Terminal: sudo /usr/libexec/xpccachectl

Reboot.

1
dgatwood On

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)
0
ak2g On

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.

1
MacMark On

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.

1
Vlad On

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