无法评论选择 [英] Can't comment selection

查看:48
本文介绍了无法评论选择的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有时候,我似乎无法使用下面的常用快捷方式(命令 + / )注释我的代码Xcode 8 Beta4。该选项在菜单中被禁用(下面的屏幕截图)。



您知道为什么吗?
我是唯一一个遇到此问题的人吗?





编辑:重新启动Xcode后,它似乎可以再次工作。

EDIT2:它仍然在Xcode 8.1上出现。也许是因为我安装了两个版本的Xcode(普通版和Beta版)?不能通过简单的重新启动来解决它!



EDIT3:建议的 xpccachectl 命令不能解决该问题

解决方案


  1. 退出Xcode

  2. 在终端中输入 sudo / usr / libexec / xpccachectl

  3. 重新启动Xcode

  4. 重新启动您的Mac(如果需要)


Sometimes, it seems I can't comment my code with the usual shortcut (command + /) under Xcode 8 Beta 4. The option is disabled in the menu (screenshot below).

Do you have any idea why? Am I the only one having this issue?

EDIT: It seems to work again after restarting Xcode... Still looking from where it comes. It's a bit annoying...

EDIT2: It still occurs on Xcode 8.1. Maybe because I have 2 versions of Xcode installed (normal and beta)? Can't fix it anymore with a simple restart!

EDIT3: the proposed xpccachectl command to fix it doesn't exist on MacOS High Sierra.

解决方案

  1. Exit Xcode
  2. Type sudo /usr/libexec/xpccachectl in Terminal
  3. Restart Xcode
  4. Restart your Mac if needed

Source

这篇关于无法评论选择的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆