【问题标题】:Linking Gitbox diff tool to FileMerge after upgrading to Xcode 5升级到 Xcode 5 后将 Gitbox diff 工具链接到 FileMerge
【发布时间】:2013-09-19 14:15:10
【问题描述】:

我刚刚升级到 Xcode 5,现在 Gitbox 似乎无法找到 FileMerge 作为 diff 工具,并且没有手动设置路径的选项。有谁知道重新连接它的方法吗?

【问题讨论】:

  • 在您的问题中,两条路径似乎相同。当我启动我自己的 GitBox 副本时,它可以与 Xcode 5 中嵌入的 Filemerge 一起正常工作。
  • 注意“内容”中的“s”,原来是在“内容”中。
  • 呃,你说得对,原来是“内容”。嗯,好的。或许区别在于它从“Xcode.app”变成了“Xcode”?

标签: xcode5 filemerge gitbox


【解决方案1】:

尝试通过终端更改活动的 Xcode:

   xcode-select --print-path
           Prints the path of the active Xcode folder
   or: xcode-select --switch <xcode_path>
           Sets the path for the active Xcode folder
   or: xcode-select --version
           Prints the version of xcode-select

如果这不起作用,Xcode 允许您选择可以使用哪一组命令行工具(它隐藏在 Xcode 的“位置”首选项窗格中。

【讨论】:

  • 我在使用 Xcode 8 时也遇到了这个问题。我为 Xcode 使用了不同的名称,因此使用上述命令更改路径是可行的。
【解决方案2】:

失败。失败。失败。问题是我显然只需要启动 Xcode :) 哎呀。

【讨论】:

  • 相同 - 在 OSX 更新(Xcode)之后,我需要运行一次 Xcode 以应用更新。之后一切都好。谢谢。
【解决方案3】:

在 Xcode 8.3.3 中,我转到首选项并在选项卡位置下选择为空的 CommandLineTools 下拉菜单,并应用 Xcode 8.3.3

现在我的 Gitbox 在比较文件时会打开 FileMerge,就像以前一样。

【讨论】:

    【解决方案4】:

    这正是因为您的 Xcode 仍在引用旧版本。打开Xcode &gt; Go to preferences &gt; Then click on "Locations" Tab。您将看到一个标有“命令行工具”的下拉菜单。选择您的最新版本,瞧!

    【讨论】:

      猜你喜欢
      • 2012-12-11
      • 2011-07-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-09-16
      • 2019-01-21
      相关资源
      最近更新 更多