Xcode Command-Slash Shortcut to Comment Only Works Sometimes January 16, 2023 by Tarik For an Xcode 8, solution is sudo /usr/libexec/xpccachectl and restart your computer.