XCode 8 Comment out broken [duplicate]
Asked Answered
M

5

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?

Myriagram answered 13/8, 2016 at 0:10 Comment(0)
Z
41

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

In Terminal: sudo /usr/libexec/xpccachectl

Reboot.

Zebrass answered 25/8, 2016 at 2:34 Comment(10)
Worked great. Well done, good find.Myriagram
Thank you!! Worked. This was driving me nuts. Apple closed my bug report as a dupe.Alyshaalysia
Still actual for 8.1Herzegovina
sudo: /usr/libexec/xpccachect: command not foundTrove
Indeed actual for 8.1. Apple, hello ??Essayistic
Doesn't work. Even since I updated from Xcode 7, along with my custom shortcuts, the simple comments shortcut doesn't work. Today updated to Xcode 8.2 (8C38) and still doesn't work. Running El Capitan.Sethrida
I am sad that this is the actual answer, but it worked for me with Xcode 8.2Yaws
Just worked for me in 8.2.1. Why on earth is this still a bug?Sparerib
This also works for Xcode 8.2 (8C38). Rebooting does not appear to be required. I cannot be certain, but the occurrence of this issue may be correlated with using Xcode to start and stop an app a large number of times in a relatively short period of time.Travertine
Command not found on High Sierra, any ideas?Tlingit
R
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.

Return answered 8/9, 2016 at 10:9 Comment(1)
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!Oversubtlety
L
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)
Labonte answered 13/8, 2016 at 0:15 Comment(1)
I am commenting uncommented lines (or at least trying). Seems it is problem with XCode. I will try raise a bug. ThanksMyriagram
M
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.

Monostrophe answered 23/8, 2016 at 17:37 Comment(0)
M
0

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

Myriagram answered 7/9, 2016 at 20:0 Comment(1)
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.Wentletrap

© 2022 - 2024 — McMap. All rights reserved.